removeEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (categorized)
mNo edit summary
Line 9: Line 9:
| Removes event handler added by [[addEventHandler]].  
| Removes event handler added by [[addEventHandler]].  


Format of handler is [type, index].  
When any handler is removed, all handler indices higher than the deleted one should be decremented. |= Description
____________________________________________________________________________________________


Index is returned by [[addEventHandler]].
| [[Object]] '''removeEventHandler''' ["EventName", index]|= Syntax


When any handler is removed, all handler indices higher than the deleted one should be decremented. |= Description
|p1= EventName: [[String]] |= Parameter 1
____________________________________________________________________________________________


| object '''removeEventHandler''' handler |= Syntax
|p2= index: [[Number]]. Value returned from [[addEventHandler]] |= Parameter 2


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


|p2= handler: [[Array]] |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value

Revision as of 13:49, 29 August 2007

Hover & click on the images for description

Description

Description:
Removes event handler added by addEventHandler. When any handler is removed, all handler indices higher than the deleted one should be decremented.
Groups:
Uncategorised

Syntax

Syntax:
Object removeEventHandler ["EventName", index]
Parameters:
EventName: String
index: Number. Value returned from addEventHandler
Return Value:
Nothing

Examples

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

Additional Information

See also:
addEventHandler

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

Bottom Section