CEffectData

From GMod Wiki

(Redirected from EffectData)
Jump to: navigation, search
Warning 64.pngThis page needs to be edited as it contains information that is unclear or incorrect. Improvement can be discussed on the talk page. Find more pages that need work here.
Details: None given.

Describes the properties of an effect. Used to create a new effect.

CEffectData (Library)

NewerShared.png CEffectData:__index
NewerShared.png CEffectData:GetAngle
NewerShared.png CEffectData:GetAttachment
NewerShared.png CEffectData:GetColor
NewerShared.png CEffectData:GetEntity
NewerShared.png CEffectData:GetEntIndex
NewerShared.png CEffectData:GetFlags
NewerShared.png CEffectData:GetHitBox
NewerShared.png CEffectData:GetMagnitude
NewerShared.png CEffectData:GetMaterial
NewerShared.png CEffectData:GetNormal
NewerShared.png CEffectData:GetOrigin
NewerShared.png CEffectData:GetRadius
NewerShared.png CEffectData:GetScale
NewerShared.png CEffectData:GetStart
NewerShared.png CEffectData:GetSurfaceProp
NewerShared.png CEffectData:SetAngle
NewerShared.png CEffectData:SetAttachment
NewerShared.png CEffectData:SetColor
NewerShared.png CEffectData:SetEntIndex
NewerShared.png CEffectData:SetEntity
NewerShared.png CEffectData:SetFlags
NewerShared.png CEffectData:SetHitBox
NewerShared.png CEffectData:SetMagnitude
NewerShared.png CEffectData:SetMaterial
NewerShared.png CEffectData:SetNormal
NewerShared.png CEffectData:SetOrigin
NewerShared.png CEffectData:SetRadius
NewerShared.png CEffectData:SetScale
NewerShared.png CEffectData:SetStart
NewerShared.png CEffectData:SetSurfaceProp

Examples

DescriptionCreates a HelicopterMegaBomb effect at the origin of the map (0,0,0)
Used onNewerShared.png
Code
 
local vPoint = Vector(0,0,0)
local effectdata = EffectData()
effectdata:SetStart( vPoint ) // not sure if we need a start and origin (endpoint) for this effect, but whatever
effectdata:SetOrigin( vPoint )
effectdata:SetScale( 1 )
util.Effect( "HelicopterMegaBomb", effectdata )	
 
OutputAn explosion can be seen at point (0,0,0) on the map.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox