G.SafeRemoveEntityDelayed

From GMod Wiki

Revision as of 20:21, 11 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.SafeRemoveEntityDelayed]G.SafeRemoveEntityDelayed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionRemove every entity with a 5 second delay.
Used onNewerShared.png
Code
for _, v in pairs( ents.GetAll() ) do
     SafeRemoveEntityDelayed( v, 5 )
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox