From CryWiki
System.RemoveEntity(userdata)
Description
Removes an entity from the game.
Arguments
- The entity id of the entity to remove.
Example
|
Lua (example)
|
local ent=System.SpawnEntity({class="US_apc"})
System.RemoveEntity(ent.id); Or if you use it in the entity script itself:
System.RemoveEntity(self.id);
|
|