call code

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint: Resistance version 1.85Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

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;
call compile format ["var%1 = 0",_n];
result of both syntaxes is var3 = 0

Additional Information

Multiplayer:
Behaviour unknown.
See also:
call function, spawn function, spawn code

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes


Crowe
Sleep seems not to be working in call functions. --Crowe 03:05, 20 March 2008 (CET)

Use spawn instead. --Doolittle 17:27, 20 March 2008 (CET)


Bottom Section

Personal tools
Buy ArmA now!