BIS fnc getNetMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Comments" to "|Comments=")
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


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


| arma3 |= Game name
|gr1= Multiplayer


|1.00|= Game version
|descr= Returns the current net mode as a string.
____________________________________________________________________________________________


| Returns the current net mode as a string. |DESCRIPTION=
|s1= call [[BIS_fnc_getNetMode]]
____________________________________________________________________________________________


| call [[BIS_fnc_getNetMode]] |SYNTAX=
|r1= [[String]] - can be one of:
 
| [[String]] - can be one of:
* "DedicatedServer"
* "DedicatedServer"
* "Server"
* "Server"
* "HeadlessClient"
* "HeadlessClient"
* "Client"
* "Client"
* "SinglePlayer" |RETURNVALUE=
* "SinglePlayer"
____________________________________________________________________________________________


|x1= <code>_netMode = [[call]] [[BIS_fnc_getNetMode]];</code> |EXAMPLE1=
|x1= <sqf>private _netMode = call BIS_fnc_getNetMode;</sqf>
____________________________________________________________________________________________


| |SEEALSO=
|seealso=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:getNetMode}}]]
[[Category:Functions|{{uc:getNetMode}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:getNetMode}}]]

Latest revision as of 22:44, 12 July 2022

Hover & click on the images for description

Description

Description:
Returns the current net mode as a string.
Execution:
call
Groups:
Multiplayer

Syntax

Syntax:
call BIS_fnc_getNetMode
Return Value:
String - can be one of:
  • "DedicatedServer"
  • "Server"
  • "HeadlessClient"
  • "Client"
  • "SinglePlayer"

Examples

Example 1:
private _netMode = call BIS_fnc_getNetMode;

Additional Information

See also:
See also needed

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