removeEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
(Remove index decrease (2006) line)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Removes event handler added by [[addEventHandler]].
| Removes an event handler added by [[addEventHandler]] by its index. |DESCRIPTION=
 
When any handler is removed, all handler indices higher than the deleted one should be decremented. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| objectName '''removeEventHandler''' [type, index]|SYNTAX=
| objectName [[removeEventHandler]] [type, index] |SYNTAX=


|p1= objectName: [[Object]] |PARAMETER1=
|p1= objectName: [[Object]] |PARAMETER1=
|p2= [type, index]: [[Array]] |PARAMETER2=
|p2= [type, index]: [[Array]] |PARAMETER2=
|p3= type: [[String]] |PARAMETER3=
|p4= index: [[Number]]. Value returned from [[addEventHandler]] |PARAMETER4=


|p3= type: [[String]] - see [[:Category:Event Handlers|Event Handlers]] |PARAMETER3=


|p4= index: [[Number]]. Value returned from [[addEventHandler]] |PARAMETER4=


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[[player]] removeEventHandler ["killed", 0]</code> |EXAMPLE1=
|x1= <code>[[player]] removeEventHandler ["killed", 0];</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[:Category:Event Handlers|EventHandlers list]], [[removeAllEventHandlers]], [[addEventHandler]] |SEEALSO=
| [[:Category:Event Handlers|EventHandlers list]], [[removeAllEventHandlers]], [[addEventHandler]] |SEEALSO=
}}
}}


Line 40: Line 38:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>


[[Category:Scripting Commands|REMOVEEVENTHANDLER]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|REMOVEEVENTHANDLER]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|REMOVEEVENTHANDLER]]
[[Category:Command_Group:_Activators|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Activators|{{uc:{{PAGENAME}}}}]]

Revision as of 19:27, 28 April 2020

Hover & click on the images for description

Description

Description:
Removes an event handler added by addEventHandler by its index.
Groups:
Uncategorised

Syntax

Syntax:
objectName removeEventHandler [type, index]
Parameters:
objectName: Object
[type, index]: Array
type: String - see Event Handlers
index: Number. Value returned from addEventHandler
Return Value:
Nothing

Examples

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

Additional Information

See also:
EventHandlers listremoveAllEventHandlersaddEventHandler

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