AreaTrigger.bindOnMelee
Bind the lua function to be used when the area trigger is hit by a melee attack.
Kind: Function
Environments: Game
Game
areaTrigger:bindOnMelee( callback, object )
Availability: Server only
Requires that areaTriggerProxyType has been set to sm.areaTrigger.areaTriggerProxyType.melee
Parameters:
| Name | Type | Description |
|---|---|---|
areaTrigger |
AreaTrigger | The area trigger instance. |
callback |
string | The name of the Lua function to bind. |
object (optional) |
table | The object that will receive the callback. (optional) |