Function
Entity
Entity_NotifyOnPlayerDemolition
Calls a function when an entity gets destroyed by the player clicking the \"Detonate me\" button next to an entity.
On this page
Entity_NotifyOnPlayerDemolition(entity, function)Description
Calls a function when an entity gets destroyed by the player clicking the \"Detonate me\" button next to an entity.
Parameters
entityEntityrequiredfunctionLuaFunctionrequired
Returns
VoidSource
Declared in the game's script sources at:
scar/entity.scar