Skip to content

DestroyEntity

Removes an entity from the world, for everyone.

A horse under a rider dismounts them; a pickup vanishes; an actor’s corpse is gone; a dog leaves. Anything a mode created is also removed by a reload.

DestroyEntity(id)
Parameter Type
id number the entity

boolean - false when there is no such entity

SetTimer(function() DestroyEntity(corpse) end, 20000)

GetEntities · CreatePickup · CreateHorse · the World entities group of the index