destroy
destroy(
authority,entity):void
Destroys entity, on the world authority decides for: every
reference a trait holds to it reads null from now on, and its body goes
with it. An Authority destroys any entity of its world, and
findAuthority(writer, entity) gives one over an entity only a page
holds. An entity already gone is left as it is. Inside a player’s
onPlayerLeave, the entity is destroyed once the player’s leave has
read the player’s record, so it reads as it was until the
leave hooks end.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
EntityAuthority |
entity |
Entity |
Returns
Section titled “Returns”void