getEventHandlerInfo: Difference between revisions
Jump to navigation
Jump to search
(update supported types) |
No edit summary |
||
Line 35: | Line 35: | ||
|x2= <sqf>_info = getEventHandlerInfo ["EachFrame", 0];</sqf> | |x2= <sqf>_info = getEventHandlerInfo ["EachFrame", 0];</sqf> | ||
|seealso= [[ | |seealso= [[addEventHandler]] [[ctrlAddEventHandler]] [[displayAddEventHandler]] [[addMPEventHandler]] | ||
[[addMissionEventHandler]] [[addMusicEventHandler]] | |||
}} | }} |
Revision as of 16:49, 18 July 2022
Description
- Description:
- Queries given event handler and returns Array in format [exists, isLast, total] or empty array [], where:
- Groups:
- Event Handlers
Syntax
- Syntax:
- entity getEventHandlerInfo [type, id]
- Parameters:
- entity: Object, Group, Control, Display - entity to which event handler is assigned
- type: String - event handler name
- id: Number - event handler id returned by addEventHandler, ctrlAddEventHandler, displayAddEventHandler, or addMPEventHandler
- Return Value:
- Array - see description
Alternative Syntax
- Syntax:
- getEventHandlerInfo [type, id]
- Parameters:
- type: String - event handler name
- id: Number - event handler id returned by addMissionEventHandler or addMusicEventHandler
- Return Value:
- Array - see description
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- addEventHandler ctrlAddEventHandler displayAddEventHandler addMPEventHandler addMissionEventHandler addMusicEventHandler
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