BIS fnc addStackedEventHandler: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Undo revision 76083 by BlenderRUS (talk) Example 1 is valid and code works) |
(syntax) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Stack an event | | Stack an event handler. Possible event handlers are: | ||
* "onEachFrame" | |||
* "onPlayerConnected" | |||
* "onPlayerDisconnected" | |||
* "onMapSingleClick" | |||
* "onPreloadStarted" | |||
* "onPreloadFinished" |= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [key, event, code] call [[BIS_fnc_addStackedEventHandler]]; |= Syntax | ||
|p1= | |p1= key: [[String]] - unique identifier|= Parameter 1 | ||
|p2= | |p2= event: [[String]] - event handler type, see above|= Parameter 2 | ||
|p3= | |p3= code: [[String]] or [[Code]] |= Parameter 3 | ||
| [[String]] |= Return value | | [[String]] |= Return value | ||
Line 24: | Line 30: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[ | | [[BIS_fnc_removeStackedEventHandler]] |= SEEALSO | ||
}} | }} |
Revision as of 17:15, 11 February 2014
Description
- Description:
- Stack an event handler. Possible event handlers are:
- "onEachFrame"
- "onPlayerConnected"
- "onPlayerDisconnected"
- "onMapSingleClick"
- "onPreloadStarted"
- "onPreloadFinished"
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [key, event, code] call BIS_fnc_addStackedEventHandler;
- Parameters:
- key: String - unique identifier
- event: String - event handler type, see above
- code: String or Code
- Return Value:
- String
Examples
- Example 1:
["someId", "onEachFrame", { hintSilent str time; }] call BIS_fnc_addStackedEventHandler;
Additional Information
- See also:
- BIS_fnc_removeStackedEventHandler
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
- Posted on November 1, 2013
- neokika
- More info at: http://forums.bistudio.com/showthread.php?167822-Stacked-event-handlers-OnEachFrame-OnPlayerConnected-etc