Garry's Mod Wiki

List of all possible functions available for effect data. This is the object returned by the EffectData function and is required for util.Effect function.

Methods

Angle CEffectData:GetAngles()

Returns the angles of the effect.

number CEffectData:GetAttachment()

Returns the attachment ID for the effect.

number CEffectData:GetColor()

Returns byte which represents the color of the effect.

number CEffectData:GetDamageType()

Returns the damage type of the effect

number CEffectData:GetEntIndex()

Returns the entity index of the entity set for the effect.

Entity CEffectData:GetEntity()

Returns the entity assigned to the effect.

number CEffectData:GetFlags()

Returns the flags of the effect.

number CEffectData:GetHitBox()

Returns the hit box ID of the effect.

number CEffectData:GetMagnitude()

Returns the magnitude of the effect.

number CEffectData:GetMaterialIndex()

Returns the material ID of the effect.

Vector CEffectData:GetNormal()

Returns the normalized direction vector of the effect.

Vector CEffectData:GetOrigin()

Returns the origin position of the effect.

number CEffectData:GetRadius()

Returns the radius of the effect.

number CEffectData:GetScale()

Returns the scale of the effect.

Vector CEffectData:GetStart()

Returns the start position of the effect.

number CEffectData:GetSurfaceProp()

Returns the surface property index of the effect.

void CEffectData:SetAngles( Angle ang )

Sets the angles of the effect.

void CEffectData:SetAttachment( number attachment )

Sets the attachment id of the effect to be created with this effect data.

This is internally stored as an integer, but only the first 5 bits will be networked.
void CEffectData:SetColor( number color )

Sets the color of the effect.

void CEffectData:SetDamageType( number damageType )

Sets the damage type of the effect to be created with this effect data.

void CEffectData:SetEntIndex( number entIndex )

Sets the entity of the effect via its index.

void CEffectData:SetEntity( Entity entity )

Sets the entity of the effect to be created with this effect data.

void CEffectData:SetFlags( number flags )

Sets the flags of the effect.

This is internally stored as an integer, but only the first 8 bits will be networked.
void CEffectData:SetHitBox( number hitBoxIndex )

Sets the hit box index of the effect.

This is internally stored as an integer, but only the first 11 bits will be networked.
void CEffectData:SetMagnitude( number magnitude )

Sets the magnitude of the effect.

void CEffectData:SetMaterialIndex( number materialIndex )

Sets the material index of the effect.

This is internally stored as an integer, but only the first 11 bits will be networked.
void CEffectData:SetNormal( Vector normal )

Sets the normalized direction vector of the effect to be created with this effect data.

void CEffectData:SetOrigin( Vector origin )

Sets the origin of the effect to be created with this effect data.

void CEffectData:SetRadius( number radius )

Sets the radius of the effect to be created with this effect data.

This is clamped internally from 0 to 1023.
void CEffectData:SetScale( number scale )

Sets the scale of the effect to be created with this effect data.

void CEffectData:SetStart( Vector start )

Sets the start of the effect to be created with this effect data.

void CEffectData:SetSurfaceProp( number surfaceProperties )

Sets the surface property index of the effect.

Page Links


Special Pages


Wikis

?

Render Time: 32ms

Session 0
DB GetPage 4
Generate Html 5
SaveChanges 9
Render Body 0
Render Sidebar 12