Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

OnLoseCreature

hjnilsson edited this page Jul 24, 2012 · 1 revision

The OnLoseCreature event is triggered when a creatures loses target of another creature.

Trigger

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.

Related Functions

Event Structure

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.

Examples

Nothing here yet.

Clone this wiki locally