hasInterface

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2: Operation Arrowhead version 1.63
  

Click on the images for descriptions

Introduced in

Game:
Arma 2: Operation Arrowhead
Version:
1.63

Description

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

Syntax

Syntax:
hasInterface
Return Value:
Boolean

Examples

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

Additional Information

Multiplayer:
-
See also:
isDedicatedisServer

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on December 21, 2014 - 14:55 (UTC)
Killzone Kid
if (isDedicated) then { //run on dedicated server only }; if (isServer) then { //run on dedicated server or player host }; if (hasInterface) then { //run on all player clients incl. player host }; if (!isDedicated) then { //run on all player clients incl. player host and headless clients }; if (!isServer) then { //run on all player clients incl. headless clients but not player host }; if (!hasInterface) then { //run on headless clients and dedicated server }; if (!hasInterface && !isDedicated) then { //run on headless clients only };