Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Allows registration for an event that fires when an entity is being removed from the game (for example, unloaded, or a few seconds after they are dead.)
Methods
subscribe
subscribe(callback: (arg0: EntityRemoveBeforeEvent) => void): (arg0: EntityRemoveBeforeEvent) => void
Will call your function every time an entity is being removed from the game.
Parameters
callback: (arg0: EntityRemoveBeforeEvent) => void
Function to call. This closure is called with restricted-execution privilege.
Returns (arg0: EntityRemoveBeforeEvent) => void - Returns a closure that can be used in subsequent unsubscribe operations. The returned closure is called with restricted-execution privilege.
Notes:
- This function can't be called in restricted-execution mode.
- This function can be called in early-execution mode.
unsubscribe
unsubscribe(callback: (arg0: EntityRemoveBeforeEvent) => void): void
Unsubscribes your function from subsequent calls when an entity is being removed.
Parameters
- callback: (arg0: EntityRemoveBeforeEvent) => void This closure is called with restricted-execution privilege.
Notes:
- This function can't be called in restricted-execution mode.
- This function can be called in early-execution mode.