call body

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 function string.

Argument(s) (if any) are passed as _this. (Arguments are passed in an array)

Syntax

Syntax:
Argument(s) call "function string"
Parameters:
Argument(s): Any Value - Optional. Argument that is passed to the function in the "_this" variable.
function string: String - A function body provided directly 'inline' or the String returned from the commands loadFile or preprocessFile.
Return Value:
Any Value - The last value given in the function is returned. See the topic Function for more information.

Examples

Example 1:
Operation Flashpoint syntax: _fAdd = loadFile "add.sqf" [1,2] call _fAdd

Armed Assault syntax: _fAdd = compile loadFile "add.sqf"

_result = [1,2] call _fAdd

Additional Information

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

Notes

Notes

+ Add Note

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

Notes


Bottom Section

Personal tools
Buy ArmA now!