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 7: | Line 7: | ||
|gr1= Event Handlers | |gr1= Event Handlers | ||
|descr= Queries given event handler, | |descr= Queries given event handler and returns [[Array]] in format [exists, isLast, total] or empty array [], where: | ||
* exists: [[Boolean]] - event handler exists | |||
* isLast: [[Boolean]] - will be executed last (relevant if last event handler modifies default engine behaviour) | |||
* total: [[Number]] - total number of event handlers added to the same event | |||
|s1= object [[getEventHandlerInfo]] [type, id | |s1= object [[getEventHandlerInfo]] [type, id] | ||
|p1= object: [[Object]] - entity to which event handler is assigned | |p1= object: [[Object]] - entity to which event handler is assigned | ||
Line 15: | Line 19: | ||
|p2= type: [[String]] - event handler name | |p2= type: [[String]] - event handler name | ||
|p3= id: [[Number]] - event handler id returned by [[addEventHandler]] | |p3= id: [[Number]] - event handler id returned by [[addEventHandler]] or [[addMPEventHandler]] | ||
|r1= [[Array]] - see description | |||
|s2= object [[getEventHandlerInfo]] [type, id] | |||
|p21= object: [[Object]] - entity to which event handler is assigned | |||
|p22= type: [[String]] - event handler name | |||
| | |p23= id: [[Number]] - event handler id returned by [[addMissionEventHandler]] or [[addMusicEventHandler]] | ||
| | |r2= [[Array]] - see description | ||
|x1= <sqf>_info = player getEventHandlerInfo ["MPKilled", 1, | |x1= <sqf>_info = player getEventHandlerInfo ["MPKilled", 1];</sqf> | ||
|x2= <sqf>_info = getEventHandlerInfo ["EachFrame", 0];</sqf> | |||
|seealso= [[addMPEventHandler]] [[addEventHandler]] [[addMissionEventHandler]] | |seealso= [[addMPEventHandler]] [[addEventHandler]] [[addMissionEventHandler]] [[addMusicEventHandler]] | ||
}} | }} |
Revision as of 16:13, 7 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:
- object getEventHandlerInfo [type, id]
- 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
- Return Value:
- Array - see description
Alternative Syntax
- Syntax:
- object getEventHandlerInfo [type, id]
- Parameters:
- object: Object - entity to which event handler is assigned
- 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
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