# Method Global:ClearUniqueCreatureEvents [-] [+]

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 only a single Creature. To bind and unbind events to all instances of a Creature, see Global:RegisterCreatureEvent and [Global:ClearCreatureEvent].

## Synopsis

`ClearUniqueCreatureEvents( entry )`

`ClearUniqueCreatureEvents( entry, event_type )`

## Arguments

`number guid`

  The GUID of a single Creature whose handlers will be cleared.

  Valid numbers: integers from 0 to 18,446,744,073,709,551,615.

`number instance_id`

  The instance ID of a single Creature 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.

# Keyboard shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

# Search tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct` (or `str`), `enum`, `trait`, `typedef` (or `tdef`).

Generated on
© 2010 - 2024 Eluna Lua Engine