removeEventHandler: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| ofpr | | ofpr | ||
|1.85 | |1.85 | ||
|gr2= Event Handlers | |gr2= Event Handlers | ||
| Removes an event handler added by [[addEventHandler]] by its index. | | Removes an event handler added by [[addEventHandler]] by its index. | ||
| objectName [[removeEventHandler]] [type, index] | | objectName [[removeEventHandler]] [type, index] | ||
|p1= objectName: [[Object]] | |p1= objectName: [[Object]] | ||
|p2= [type, index]: [[Array]] | |p2= [type, index]: [[Array]] | ||
|p3= type: [[String]] - see [[:Category:Event Handlers|Event Handlers]] | |p3= type: [[String]] - see [[:Category:Event Handlers|Event Handlers]] | ||
|p4= index: [[Number]] - value returned by [[addEventHandler]] | |p4= index: [[Number]] - value returned by [[addEventHandler]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[player]] removeEventHandler ["killed", 0];</code> | |x1= <code>[[player]] removeEventHandler ["killed", 0];</code> | ||
| [[:Category:Event Handlers|EventHandlers list]], [[removeAllEventHandlers]], [[addEventHandler]] | | [[:Category:Event Handlers|EventHandlers list]], [[removeAllEventHandlers]], [[addEventHandler]] | ||
}} | }} | ||
Revision as of 01:26, 18 January 2021
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
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Resistance version 1.85
- Operation Flashpoint: Resistance: New Scripting Commands
- Operation Flashpoint: Resistance: Scripting Commands
- Command Group: Event Handlers
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands