removeEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (moved command to template)
Line 3: Line 3:
[[Category:Scripting Commands ArmA|REMOVEEVENTHANDLER]]
[[Category:Scripting Commands ArmA|REMOVEEVENTHANDLER]]


{{Command|= Comments
____________________________________________________________________________________________


<h2 style="color:#000066">'''''object'' removeEventHandler ''handler'''''</h2>
| ofpr |= Game name


|1.85|= Game version
____________________________________________________________________________________________


'''Operand types:'''
| Removes event handler added by [[addEventHandler]].


'''object:''' [[Object]]
Format of handler is [type, index].


'''handler:''' [[Array]]
Index is returned by [[addEventHandler]].


'''Type of returned value:'''
When any handler is removed, all handler indices higher than the deleted one should be decremented. |= Description
____________________________________________________________________________________________


[[Nothing]]
| object '''removeEventHandler''' handler |= Syntax


'''Compatibility:'''
|p1= object: [[Object]] |= Parameter 1


Added in version '''1.85'''
|p2= handler: [[Array]] |= Parameter 2


'''Description:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>[[player]] removeEventHandler ["killed", 0]</pre> |= Example 1
____________________________________________________________________________________________


Removes event handler added by [[addEventHandler]].
|  |= See also


Format of handler is '''''[type, index]'''''.
}}


Index is returned by [[addEventHandler]].
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


When any handler is removed, all handler indices higher than the deleted one should be decremented.
<!-- Note Section END -->
 
</dl>
 
'''Example:'''
 
[[player]] '''removeEventHandler''' ["killed", 0]

Revision as of 02:26, 3 August 2006


Hover & click on the images for description

Description

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.
Groups:
Uncategorised

Syntax

Syntax:
object removeEventHandler handler
Parameters:
object: Object
handler: Array
Return Value:
Nothing

Examples

Example 1:
[[player]] removeEventHandler ["killed", 0]

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes