BIS fnc addStackedEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
(Created page with "{{Function|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.00|= Game version ___________________...")
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Stack an event. handler. Possibilities are onEachFrame, onPlayerConnected, onPlayerDisconnected, onMapSingleClick, onPreloadStarted, onPreloadFinished |= Description
Description:
This function adds a new item that will be stacked and called upon event handler selected has been executed
Parameter(s):
_this select 0: STRING - The unique ID of the item inside the stack
_this select 1: STRING - The onXxx event handler to monitor and execute code upon
_this select 2: STRING or CODE - The function name or code to execute upon the event triggering
_this select 3: ANY - Arguments passed to function/code
Returns:
STRING - The stacked item ID
*/
//Parameters
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_addStackedEventHandler]]; --> |= Syntax
| param call [[BIS_fnc_addStackedEventHandler]]; |= Syntax


|p1= |= Parameter 1
|p1= param: [[String]] |= Parameter 1


| |= Return value
|p2= param: [[String]] |= Parameter 2
 
|p3= param: [[String]] |= Parameter 3
 
| [[String]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
 
 
|x1= <code></code> |=  
|x1= <code>["someId", "onEachFrame", "someFunction"] [[call]] [[BIS_fnc_addStackedEventHandler]];</code> |=  
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 48: Line 36:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:addStackedEventHandler}}]]
 
[[Category:Functions|{{uc:addStackedEventHandler}}]]
[[Category:Arma 3:_Functions|log]]
[[Category:{{Name|arma3}}: Functions|{{uc:addStackedEventHandler}}]]
[[Category:Function Group: Debug|log]]

Revision as of 15:30, 1 November 2013

Hover & click on the images for description

Description

Description:
Stack an event. handler. Possibilities are onEachFrame, onPlayerConnected, onPlayerDisconnected, onMapSingleClick, onPreloadStarted, onPreloadFinished
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
param call BIS_fnc_addStackedEventHandler;
Parameters:
param: String
param: String
param: String
Return Value:
String

Examples

Example 1:
["someId", "onEachFrame", "someFunction"] call BIS_fnc_addStackedEventHandler;

Additional Information

See also:
See also needed

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