removeAllEventHandlers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 4: Line 4:


{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofpr |Game name=
| ofpr |Game name=
Line 11: Line 10:


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


| 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. |DESCRIPTION=
____________________________________________________________________________________________


| objectName [[removeAllEventHandlers]] handlerType |SYNTAX=
| objectName [[removeAllEventHandlers]] handlerType |SYNTAX=
Line 23: Line 20:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>[[player]] [[removeAllEventHandlers]] "Killed";</code> |EXAMPLE1=
|x1= <code>[[player]] [[removeAllEventHandlers]] "Killed";</code> |EXAMPLE1=
____________________________________________________________________________________________


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

Revision as of 02:12, 17 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

Notes

Bottom Section