Guide 1 Docs 2 Reference 3

Function of EntitySpec

entitySpec.on_remove

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

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

Parameters

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

Returns

?