removeAllEventHandlers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Some wiki formatting)
Line 1: Line 1:
[[Category:Scripting Commands|REMOVEALLEVENTHANDLERS]]
[[Category:Scripting Commands OFP 1.96|REMOVEALLEVENTHANDLERS]]
{{GameCategory|arma1|Scripting Commands}}
{{RV|type=command
{{RV|type=command


| ofpr
|game1= ofpr


|1.85
|version1= 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.
|descr= Removes all event handlers of given type that were added by [[addEventHandler]] '''and''' resets event handler's creation index to 0.


| objectName [[removeAllEventHandlers]] handlerType
|s1= objectName [[removeAllEventHandlers]] handlerType


|p1= objectName: [[Object]]
|p1= objectName: [[Object]]
Line 19: Line 15:
|p2= handlerType: [[String]] - see [[:Category:Event Handlers|Event Handlers]]
|p2= handlerType: [[String]] - see [[:Category:Event Handlers|Event Handlers]]


| [[Nothing]]
|r1= [[Nothing]]
   
   
|x1= <code>[[player]] [[removeAllEventHandlers]] "Killed";</code>
|x1= <code>[[player]] [[removeAllEventHandlers]] "Killed";</code>


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


[[Category:Scripting Commands OFP 1.96|REMOVEALLEVENTHANDLERS]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 00:09, 1 February 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