BIS fnc getNetMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
 
(26 intermediate revisions by 4 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.
____________________________________________________________________________________________


| <pre>/*
|s1= call [[BIS_fnc_getNetMode]]
Author: Nelson Duarte


Description:
|r1= [[String]] - can be one of:
Returns one of the following net modes:
* "DedicatedServer"
- DedicatedServer
* "Server"
- Server
* "HeadlessClient"
- HeadlessClient
* "Client"
- Client
* "SinglePlayer"
- SinglePlayer


Parameters:
|x1= <sqf>private _netMode = call BIS_fnc_getNetMode;</sqf>
NONE
 
Returns:
STRING: The net mode of current machine
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_getNetMode]]; --> |= Syntax
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|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 23: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