call code
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Operation Flashpoint: Resistance
- Version:
- 1.85
Description
- Description:
- Executes the given code.
Syntax
- Syntax:
- call {Code}
- Parameters:
- Code
- Return Value:
- Anything - The last value given in the function is returned. See the topic Function for more information.
Examples
- Example 1:
call {"x = 3"}- Example 2:
- Operation Flashpoint syntax:
_n = 3;
call format [{var%1 = 0},_n];Armed Assault syntax:
_n = 3;result of both syntaxes is var3 = 0
call compile format ["var%1 = 0",_n];
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- call function, spawn function, spawn code

