G.SafeRemoveEntity
From GMod Wiki
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!)