{"name":"hasInterface","operator":null,"title":"hasInterface","type":"command","url":"https://community.bistudio.com/wiki/hasInterface","revid":369395,"updated":"2024-09-03T18:43:19Z","groups":["Multiplayer"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.63"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.63"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns true if the computer has an interface (a real player). False for a dedicated server or for a headless client.","syntaxes":[{"syntax":"hasInterface","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\n_isHC = !(hasInterface || isDedicated);\n```","code":["_isHC = !(hasInterface || isDedicated);"]},{"text":"```sqf\n_isHC = !hasInterface && !isDedicated;\n```","code":["_isHC = !hasInterface && !isDedicated;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["isDedicated","isServer"],"notes":[],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: Multiplayer","Introduced with Arma 2: Operation Arrowhead version 1.63","Scripting Commands","Take On Helicopters: Scripting Commands"]}