BIS fnc addStackedEventHandler: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Undo revision 76083 by BlenderRUS (talk) Example 1 is valid and code works)
Line 35: Line 35:
<dt class="note">[[User:neokika|neokika]]<dd class="note">
<dt class="note">[[User:neokika|neokika]]<dd class="note">
More info at: http://forums.bistudio.com/showthread.php?167822-Stacked-event-handlers-OnEachFrame-OnPlayerConnected-etc
More info at: http://forums.bistudio.com/showthread.php?167822-Stacked-event-handlers-OnEachFrame-OnPlayerConnected-etc
<dd class="notedate">Posted on February 9, 2014
<dt class="note">[[User:BlenderRUS|BlenderRUS]]<dd class="note">
You cant use code block like in Example1 field, ONLY string is supported.
So correct example is:
<code>["someId", "onEachFrame", "hintSilent str time"] [[call]] [[BIS_fnc_addStackedEventHandler]];</code>


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 16:13, 9 February 2014

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:
Key: String
Event: String
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

Bottom Section