removeEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofpr |Game name=
| ofpr


|1.85|Game version=
|1.85


|gr2= Event Handlers |GROUP2=
|gr2= Event Handlers


| Removes an event handler added by [[addEventHandler]] by its index. |DESCRIPTION=
| Removes an event handler added by [[addEventHandler]] by its index.


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


|p1= objectName: [[Object]] |PARAMETER1=
|p1= objectName: [[Object]]


|p2= [type, index]: [[Array]] |PARAMETER2=
|p2= [type, index]: [[Array]]


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


|p4= index: [[Number]] - value returned by [[addEventHandler]] |PARAMETER4=
|p4= index: [[Number]] - value returned by [[addEventHandler]]


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


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



Revision as of 01:26, 18 January 2021

Hover & click on the images for description

Description

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

Syntax

Syntax:
objectName removeEventHandler [type, index]
Parameters:
objectName: Object
[type, index]: Array
type: String - see Event Handlers
index: Number - value returned by 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

Bottom Section