removeEventHandler

From Bohemia Interactive Community
Revision as of 18:25, 15 April 2006 by Hoz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

object removeEventHandler handler

Operand types:

object: Object

handler: Array

Type of returned value:

Nothing

Description:

Removes event handler added by addEventHandler.

Format of handler is [type, index].

Index is returned by addEventHandler.

When any handler is removed, all handler indices higher than the deleted one should be decremented.

Example:

player removeEventHandler ["killed", 0]