CEffectData.SetEntity
From GMod Wiki
| 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: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CEffectData.SetEntity]CEffectData.SetEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Gives an entity the prop spawn effect from Sandbox. |
|---|---|
| Used on | |
| Code | local efdata = EffectData() efdata:SetEntity( ent ) --Change ent to your entity util.Effect( "propspawn", efdata ) |
| Output | N/A |