BIS_fnc_addScriptedEventHandler
Jump to navigation
Jump to search
Description
- Description:
/* Description: Add scripted event handler Parameter(s): 0: NAMESPACE, OBJECT, GROUP or LOCATION - namespace in which handler is saved 1: STRING - handler name 2: CODE or STRING - code executed upon calling Returns: NUMBER - handler ID */
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Example 1:
Additional Information
- See also:
- BIS_fnc_callScriptedEventHandler
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
- Posted on May 15, 2016 - 19:13 (UTC)
- RageBone
-
Example:
_index = [missionNamespace,"event",{someCode = "Hello World";}] call bis_fnc_addScriptedEventhandler;
//_index == 0
_index = [missionNamespace,"event","hint someCode;"}] call bis_fnc_addScriptedEventhandler;
// _index == 1
//executing will hint "hello world".
[missionNamespace,"event",[]] call bis_fnc_callScriptedEventHandler;
Note that this is capable of stacking code, the order of stacking code matters!