G.SafeRemoveEntity

From GMod Wiki

Jump to: navigation, search
Function
Syntax SafeRemoveEntity( Entity ent )
Where is this used?
Description:
Safely removes an entity.
Returns: nil
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.SafeRemoveEntity]G.SafeRemoveEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionRemove every entity.
Used onNewerShared.png
Code
for _, v in pairs( ents.GetAll() ) do
     SafeRemoveEntity( v )
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox