Arma 3 Scripting

Function in Program Flow

BIS_fnc_call

Also available as Markdown and JSON, or read the original wiki page.

Description

Execute given code with or without parameter.

Note

Arma 3: Since Arma 3 v1.50, use remoteExec/remoteExecCall instead.

Syntax

Syntax 1

[params, code] call BIS_fnc_call

Parameters:

Returns: Anything

Syntax 2

code call BIS_fnc_call

Parameters:

Returns: Anything

Examples

Example 1

Show a message for the current player.

[["Hello"], {hint (_this select 0);}] call BIS_fnc_call;

Example 2

Alternative syntax

{ hint "Hello"; } call BIS_fnc_call;

See also

remoteExec · remoteExecCall · BIS_fnc_spawn · BIS_fnc_execVM · BIS_fnc_execFSM · BIS_fnc_execRemote

Community notes

Strangepete

As of writing (ver. 1.37) BIS_fnc_call is only a wrapper for BIS_fnc_spawn. Both functions use call to execute the code.