BIS_fnc_spawn

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 0.56
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
0.56

Description

Description:
Execute given code with or without parameter.

Syntax

Syntax:
[params, code] spawn BIS_fnc_spawn;
Parameters:
params: Anything - function arguments
code: Code - function code
Return Value:
Nothing

Alternative Syntax

Syntax:
code spawn BIS_fnc_spawn;
Parameters:
code: Code
Return Value:
Nothing

Examples

Example 1:
Show a message for the current player. [["Hello"], {hint (_this select 0);}] spawn BIS_fnc_spawn;
Example 2:
Show a message to all connected players. [[["Hello"], {hint (_this select 0);}], "BIS_fnc_spawn", true, false, false] call BIS_fnc_MP;
Example 3:
Alternative syntax {hint "Hello";} spawn BIS_fnc_spawn;

Additional Information

Execution:
spawn
Multiplayer:
-
See also:
BIS_fnc_execFSMBIS_fnc_execRemoteBIS_fnc_execVMBIS_fnc_call

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Bottom Section