Entity.Remove
From GMod Wiki
Revision as of 05:03, 25 October 2009 by Crazy Quebecer (Talk | contribs)
| Function | |
| Syntax | Entity:Remove( ) |
| Description: | |
| Removes the entity. | |
| Returns: | nil |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.Remove]Entity.Remove [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Removes the entity. |
|---|---|
| Used on | |
| Code | target = ents.Create( "info_target" ) -- Make an entity --Additional creation code here... target:Remove() -- Kill it |
| Output | N/A |
Additional Notes
- This is exactly the same as firing the output "kill". E.g. Entity:Fire("kill","",0)
- Calling this clientside might crash your game.