System RemoveEntity

From CryWiki

Jump to: navigation, search

System.RemoveEntity(userdata)

Description

Removes an entity from the game.

Arguments

  1. 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);


Personal tools