hasInterface: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(example)
Line 15: Line 15:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>headless <nowiki>=</nowiki> ! ( '''hasInterface''' <nowiki>||</nowiki> isDedicated ) </code> |= Example 1
|x1= <code>headless = !([[hasInterface]] <nowiki>||</nowiki> [[isDedicated]]);</code> |= Example 1
 
|x2= <code>_isHC = ![[hasInterface]] && ![[isDedicated]];</code> |= Example 2
 
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 16:27, 26 February 2014

Hover & click on the images for description

Description

Description:
Returns true if the computer has an interface (a real player). False for a dedicated server or for a headless client.
Groups:
Uncategorised

Syntax

Syntax:
hasInterface
Return Value:
Boolean

Examples

Example 1:
headless = !(hasInterface || isDedicated);
Example 2:
_isHC = !hasInterface && !isDedicated;

Additional Information

See also:
isDedicatedisServer

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