CEffectData.SetEntity

From GMod Wiki

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