hasInterface: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *arma2oa * +\| *1.([0-9]{2}) * *\|([^g]|g[^a])" to "| arma2oa |1.$1 |game2= tkoh |version2= 1.00 |game3= arma3 |version3= 0.50 |$2") |
Lou Montana (talk | contribs) m (Text replacement - "\| *\[\[([a-zA-Z0-9_]+)\]\] * \|r1=" to "|s1= $1 |r1=") |
||
Line 14: | Line 14: | ||
| Returns true if the computer has an interface (a real player). False for a dedicated server or for a headless client. | | Returns true if the computer has an interface (a real player). False for a dedicated server or for a headless client. | ||
| [[hasInterface]] | |s1= [[hasInterface]] | ||
|r1=[[Boolean]] | |r1=[[Boolean]] |
Revision as of 15:50, 13 June 2021
Description
- Description:
- Description needed
- Groups:
- Multiplayer
Syntax
- Syntax:
- hasInterface
- Return Value:
- Boolean
Examples
- Example 1:
_isHC = !(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
- 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 };