Entity.Remove

From GMod Wiki

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