Entity.IsEffectActive
From GMod Wiki
Revision as of 11:30, 16 August 2011 by TheFreeman193 (Talk | contribs)
Function | |
Syntax | Entity:IsEffectActive( Enum effect ) |
Description: | |
Returns if a engine effect is active on the entity. | |
Returns: | Boolean |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.IsEffectActive]Entity.IsEffectActive [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Checks if the blink effect is active. |
---|---|
Used on | |
Code | local active = Entity:IsEffectActive(EF_ITEM_BLINK); print(active); |
Output | true/false |
See Also
- Entity:AddEffects
- Entity:RemoveEffects
- Effect flags can be seen here: Effect Flags