Garry's Mod Wiki

CEffectData

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.
CEffectData:SetAngles( Angle ang )
Sets the angles of the effect.
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.
CEffectData:SetColor( number color )
Sets the color of the effect.
CEffectData:SetDamageType( number damageType )
Sets the damage type of the effect to be created with this effect data.
CEffectData:SetEntIndex( number entIndex )
Sets the entity of the effect via its index.
CEffectData:SetEntity( Entity entity )
Sets the entity of the effect to be created with this effect data.
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.
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.
CEffectData:SetMagnitude( number magnitude )
Sets the magnitude of the effect.
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.
CEffectData:SetNormal( Vector normal )
Sets the normalized direction vector of the effect to be created with this effect data.
CEffectData:SetOrigin( Vector origin )
Sets the origin of the effect to be created with this effect data.
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.
CEffectData:SetScale( number scale )
Sets the scale of the effect to be created with this effect data.
CEffectData:SetStart( Vector start )
Sets the start of the effect to be created with this effect data.
CEffectData:SetSurfaceProp( number surfaceProperties )
Sets the surface property index of the effect.

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 2
Generate Html 4
SaveChanges 10
Render Body 0
Render Sidebar 12