G.SafeRemoveEntityDelayed
From GMod Wiki
Revision as of 20:21, 11 November 2009 by Crazy Quebecer (Talk | contribs)
| Function | |
| Syntax |
SafeRemoveEntityDelayed( Entity ent, Number delay ) Where is this used? |
| Description: | |
| The same as SafeRemoveEntity but this time with a delay. | |
| Returns: | nil |
| Part of Library: | Global Functions |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.SafeRemoveEntityDelayed]G.SafeRemoveEntityDelayed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Remove every entity with a 5 second delay. |
|---|---|
| Used on | |
| Code | for _, v in pairs( ents.GetAll() ) do SafeRemoveEntityDelayed( v, 5 ) end |
| Output | N/A |
Additional Notes
- This function cannot remove players. (that's why it's called SAFERemoveEntityDelayed!)