removeAllEventHandlers: 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 3: Line 3:
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}


{{Command|Comments=
{{Command


| ofpr |Game name=
| ofpr


|1.85|Game version=
|1.85


|gr1 = Event Handlers |GROUP1=
|gr1 = Event Handlers


| Removes all event handlers of given type that were added by [[addEventHandler]] '''and''' resets event handler's creation index to 0. |DESCRIPTION=
| Removes all event handlers of given type that were added by [[addEventHandler]] '''and''' resets event handler's creation index to 0.


| objectName [[removeAllEventHandlers]] handlerType |SYNTAX=
| 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]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>[[player]] [[removeAllEventHandlers]] "Killed";</code> |EXAMPLE1=
|x1= <code>[[player]] [[removeAllEventHandlers]] "Killed";</code>


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



Revision as of 01:27, 18 January 2021


Hover & click on the images for description

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

See also:
EventHandlers listremoveEventHandleraddEventHandlerremoveMissionEventHandler

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