Interactable.bindDamageDestruction
Binds a callback to be called if the interactable is destroyed through a source of damage.
Kind: Function
Environments: Game
Game
interactable:bindDamageDestruction( callback )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
interactable |
Interactable | The interactable. |
callback |
string | The name of the lua function to bind. |