Method Global:ClearCreatureEvents [-] [+]

Unbinds event handlers for either all of a Creature's events, or one type of event.

If event_type is nil, all the Creature's event handlers are cleared.

Otherwise, only event handlers for event_type are cleared.

NOTE: this will affect all instances of the Creature, not just one. To bind and unbind events to a single Creature, see Global:RegisterUniqueCreatureEvent and Global:ClearUniqueCreatureEvents.

Synopsis

ClearCreatureEvents( entry )

ClearCreatureEvents( entry, event_type )

Arguments

number entry

The ID of one or more Creatures whose handlers will be cleared.

Valid numbers: integers from 0 to 4,294,967,295.

number event_type

The event whose handlers will be cleared, see Global:RegisterCreatureEvent.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

Nothing.

Generated on
©2016 - Eluna Lua Engine