Entity.Remove

From GMod Wiki

Revision as of 05:03, 25 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:Remove( )
Description:
Removes the entity.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.Remove]Entity.Remove [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionRemoves the entity.
Used onNewerServer.png
Code
target = ents.Create( "info_target" ) -- Make an entity
--Additional creation code here...
target:Remove() -- Kill it
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox