forked from opentibia/server
-
Notifications
You must be signed in to change notification settings - Fork 0
OnLoseCreature
hjnilsson edited this page Jul 24, 2012
·
1 revision
The OnLoseCreature event is triggered when a creatures loses target of another creature.
This event is triggered when another creature is lost as a target for the current creature. That means it fires when a creature's target disappears for example. It does not fire because a creature walks outside the view field of another creature, use a onThink event and use Creature.canSee to find out if the creature is outside the view.
It is not recommended to move or destroy the creatures that have been lost from within the handler. As it can cause major problem, add a timer event for a very low interval and remove them a second later instead.
This event can not be skipped.
The OnLoseCreatureEvent structure has two members.
- creature - The Creature that lost sight of the other creature.
- lost_creature - The creature that was lost sight of.
Nothing here yet.