BIS fnc getNetMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported: BIS Functions update 7/7)
(Page filling - missing see also)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Returns the current net mode as a string. |= Description
Author: Nelson Duarte
 
Description:
Returns one of the following net modes:
- DedicatedServer
- Server
- HeadlessClient
- Client
- SinglePlayer
 
Parameters:
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
| call [[BIS_fnc_getNetMode]] |= Syntax
|p1= |= Parameter 1


| |= Return value
| [[String]] - can be one of:
* "DedicatedServer"
* "Server"
* "HeadlessClient"
* "Client"
* "SinglePlayer" |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>_netMode = [[call]] [[BIS_fnc_getNetMode]];</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| |= See also
}}
}}



Revision as of 14:06, 22 April 2018


Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
_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

Notes

Bottom Section