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