CEffectData.SetEntity

From GMod Wiki

Revision as of 23:23, 22 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax EffectData:SetEntity( Entity entity )
Description:
Set the effects entity (the meaning of this differs between effect types).
Returns: nil
In Object: CEffectData
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CEffectData.SetEntity]CEffectData.SetEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGives an entity the prop spawn effect from Sandbox.
Used onNewerShared.png
Code
local efdata = EffectData()
efdata:SetEntity( ent ) --Change ent to your entity
util.Effect( "propspawn", efdata )
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox