removeAllEventHandlers: 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 3: | Line 3: | ||
{{GameCategory|arma1|Scripting Commands}} | {{GameCategory|arma1|Scripting Commands}} | ||
{{Command | {{Command | ||
| ofpr | | ofpr | ||
|1.85 | |1.85 | ||
|gr1 = Event Handlers | |gr1 = Event Handlers | ||
| Removes all event handlers of given type that were added by [[addEventHandler]] '''and''' resets event handler's creation index to 0. | | Removes all event handlers of given type that were added by [[addEventHandler]] '''and''' resets event handler's creation index to 0. | ||
| objectName [[removeAllEventHandlers]] handlerType | | objectName [[removeAllEventHandlers]] handlerType | ||
|p1= objectName: [[Object]] | |p1= objectName: [[Object]] | ||
Line 19: | Line 19: | ||
|p2= handlerType: [[String]] - see [[:Category:Event Handlers|Event Handlers]] | |p2= handlerType: [[String]] - see [[:Category:Event Handlers|Event Handlers]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[player]] [[removeAllEventHandlers]] "Killed";</code> | |x1= <code>[[player]] [[removeAllEventHandlers]] "Killed";</code> | ||
| [[:Category:Event Handlers|EventHandlers list]], [[removeEventHandler]], [[addEventHandler]], [[removeMissionEventHandler]] | | [[:Category:Event Handlers|EventHandlers list]], [[removeEventHandler]], [[addEventHandler]], [[removeMissionEventHandler]] | ||
}} | }} | ||
Revision as of 01:27, 18 January 2021
Description
- Description:
- Removes all event handlers of given type that were added by addEventHandler and resets event handler's creation index to 0.
- Groups:
- Event Handlers
Syntax
- Syntax:
- objectName removeAllEventHandlers handlerType
- Parameters:
- objectName: Object
- handlerType: String - see Event Handlers
- Return Value:
- Nothing
Examples
- Example 1:
player removeAllEventHandlers "Killed";
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
- Scripting Commands OFP 1.96
- ArmA: Armed Assault: 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.99
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands