BIS fnc call: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Some wiki formatting)
 
(59 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 0.50


| arma3 |= Game name
|gr1= Program Flow


|1.00|= Game version
|descr= Execute given code with or without parameter.
____________________________________________________________________________________________
{{Feature|arma3|Since {{GVI|arma3|1.50}}, use [[remoteExec]]/[[remoteExecCall]] instead.}}


| ''N/A'' |= Description
|s1= [params, code] call [[BIS_fnc_call]]
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_call]]; --> |= Syntax
|p1= params: [[Anything]] - function arguments


|p1= |= Parameter 1
|p2= code: [[Code]] - function code


| |= Return value
|r1= [[Anything]]
____________________________________________________________________________________________


|x1= <code></code> |=
|s2= code call [[BIS_fnc_call]]
____________________________________________________________________________________________


| |= See also
|p21= code: [[Code]]


}}
|r2= [[Anything]]
 
|x1= Show a message for the current player.
<sqf>[["Hello"], {hint (_this select 0);}] call BIS_fnc_call;</sqf>


<h3 style="display:none">Notes</h3>
|x2= Alternative syntax
<dl class="command_description">
<sqf>{ hint "Hello"; } call BIS_fnc_call;</sqf>
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[remoteExec]] [[remoteExecCall]] [[BIS_fnc_spawn]] [[BIS_fnc_execVM]] [[BIS_fnc_execFSM]] [[BIS_fnc_execRemote]]
</dl>
}}


<h3 style="display:none">Bottom Section</h3>
{{Note
[[Category:Function Group: MP|{{uc:call}}]]
|user= Strangepete
[[Category:Functions|{{uc:call}}]]
|timestamp= 20141130022200
[[Category:{{Name|arma3}}: Functions|{{uc:call}}]]
|text= 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.
}}

Latest revision as of 10:49, 13 July 2022

Hover & click on the images for description

Description

Description:
Execute given code with or without parameter.
Arma 3
Since Arma 3 logo black.png1.50, use remoteExec/remoteExecCall instead.
Execution:
call
Groups:
Program Flow

Syntax

Syntax:
[params, code] call BIS_fnc_call
Parameters:
params: Anything - function arguments
code: Code - function code
Return Value:
Anything

Alternative Syntax

Syntax:
code call BIS_fnc_call
Parameters:
code: Code
Return Value:
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;

Additional Information

See also:
remoteExec remoteExecCall BIS_fnc_spawn BIS_fnc_execVM BIS_fnc_execFSM BIS_fnc_execRemote

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Strangepete - c
Posted on Nov 30, 2014 - 02:22 (UTC)
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.