isDedicated: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Moved my note to the description.)
(corrected broken example)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return true if the machine (executing the command) is a dedicated server. Returns [[false]] in single player. |= Description
| Return [[true]] if the machine (executing the command) is a dedicated multiplayer server. In single player returns [[false]]. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 21: Line 21:




|x1= <code>[[if]] ([[isDedicated]]) [[then]] {[[hint]] "Dedicated Server on the run !";};</code>|= EXAMPLE1  
|x1= <code>[[if]] ([[isDedicated]]) [[then]] {[[diag_log]] "Dedicated Server on the run !";};</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 01:50, 29 November 2014

Hover & click on the images for description

Description

Description:
Return true if the machine (executing the command) is a dedicated multiplayer server. In single player returns false.
Groups:
Uncategorised

Syntax

Syntax:
isDedicated
Return Value:
Boolean

Examples

Example 1:
if (isDedicated) then {diag_log "Dedicated Server on the run !";};

Additional Information

See also:
isServerhasInterface

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