G.EffectData

From GMod Wiki

Jump to: navigation, search
Function
Syntax EffectData( )
Where is this used?
Description:
Returns a new effect object.
Returns: CEffectData
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.EffectData]G.EffectData [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionCreates an explosion.
Used onNewerShared.png
Code
local Effect = EffectData()
 
Effect:SetRadius(8)
Effect:SetOrigin(Vector(0, 0, 0))
Effect:SetStart(Vector(0, 0, 0))
Effect:SetMagnitude(300)
 
util.Effect("Explosion", Effect)
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox