removeEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:




<h2 style="color:#000066">''object '''''removeEventHandler ''handler'''''</h2>
<h2 style="color:#000066">'''''object'' removeEventHandler ''handler'''''</h2>





Revision as of 11:50, 30 June 2006


object removeEventHandler handler


Operand types:

object: Object

handler: Array

Type of returned value:

Nothing

Compatibility:

Added in version 1.85

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]