Guide 1 Docs 2 Reference 3

Function of EntityAmendSpec

entityAmendSpec.on_remove

Called when it leaves the world; why is "removed", "settled", "killed" or "unloaded". Not called when the pack goes away.

entityAmendSpec.on_remove((e: EntityHandle, why: string?) -> ()) → ?

Parameters

(eEntityHandle, why: string?) -> ()required

Returns

?