removeEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
back to [[Scripting_Reference#R|COMREF]]
<h2 style="color:#000066">''object '''''removeEventHandler ''handler'''''</h2>
<h2 style="color:#000066">''object '''''removeEventHandler ''handler'''''</h2>


'''Operand types:'''
'''Operand types:'''


object: [[Object]]
'''object:''' [[Object]]


handler: [[Array]]
'''handler:''' [[Array]]


'''Type of returned value:'''
'''Type of returned value:'''


Nothing
[[Nothing]]


'''Description:'''
'''Description:'''
Line 20: Line 23:


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


'''Example:'''
'''Example:'''


player '''removeEventHandler''' ["killed", 0]
[[player]] '''removeEventHandler''' ["killed", 0]

Revision as of 23:38, 15 April 2006

back to COMREF

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]