ScarDoc

Start typing to search the SCAR reference.

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

  • entityEntityrequired
  • functionLuaFunctionrequired

Returns

Void

Source

Declared in the game's script sources at:

scar/entity.scar