OnUnitEnterLeave

Events View source
OnUnitEnterLeave

Source on GitHub

Functions

getEnterLeaveUnit

public function getEnterLeaveUnit() returns unit

Returns the unit that caused the enter/leave event to happen

onEnter

public function onEnter(code c)

Adds a callback that is run when a unit enters the map

onLeave

public function onLeave(code c)

Adds a callback that is run when a unit leaves the map