EFFECT.Think
From GMod Wiki
| Event Hook | |
| Hook Name | Think |
| Syntax | EFFECT:Think( ) |
| Description | Runs every frame the effect is active. |
| Returns | Boolean |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=EFFECT.Think]EFFECT.Think [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Makes the effect never die (it will exist until removed). |
|---|---|
| Used on | |
| Code | function EFFECT:Think() return true; end |
| Output | N/A |
Additional Notes
- Return false if you want the effect to die, otherwise return true.
- If you return true, your effect must have a Render-function (even if it's empty), or your console will get spammed with "attempt to call a nil value".