getEventHandlerInfo: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
|p2= type: [[String]] - event handler name | |p2= type: [[String]] - event handler name | ||
|p3= id: [[Number]] - event handler id | |p3= id: [[Number]] - event handler id returned by [[addEventHandler]] (or [[addMPEventHandler]]) | ||
|p4= mpEvent (Optional): [[Boolean]] - use [[true]] for event handlers added with [[addMPEventHandler]], default [[false]] | |p4= mpEvent (Optional): [[Boolean]] - use [[true]] for event handlers added with [[addMPEventHandler]], default [[false]] | ||
Line 26: | Line 26: | ||
|x1= <sqf>_info = player getEventHandlerInfo ["MPKilled", 1, true];</sqf> | |x1= <sqf>_info = player getEventHandlerInfo ["MPKilled", 1, true];</sqf> | ||
|seealso= [[addMPEventHandler]] [[addEventHandler]] | |seealso= [[addMPEventHandler]] [[addEventHandler]] [[addMissionEventHandler]] | ||
}} | }} |
Revision as of 19:49, 6 July 2022
Description
- Description:
- Queries given event handler, whether or not it exists and is last. Also returns total number of event handlers assigned to the same event.
- Groups:
- Event Handlers
Syntax
- Syntax:
- object getEventHandlerInfo [type, id, mpEvent]
- Parameters:
- object: Object - entity to which event handler is assigned
- type: String - event handler name
- id: Number - event handler id returned by addEventHandler (or addMPEventHandler)
- mpEvent (Optional): Boolean - use true for event handlers added with addMPEventHandler, default false
- Return Value:
- Array - in format [exists, isLast, total] or empty array [], where:
Examples
- Example 1:
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