getClientState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 14: Line 14:
| [[String]] - Client state. Possible values are:
| [[String]] - Client state. Possible values are:


<br/>DEBRIEFING READ
* NONE - no client (or singleplayer)
<br/>GAME FINISHED
* CREATED - client is create
<br/>BRIEFING READ
* CONNECTED - client is connected to server, message formats are registered
<br/>BRIEFING SHOWN
* LOGGED IN - identity is created
<br/>GAME LOADED
* MISSION SELECTED - mission is selected
<br/>MISSION RECEIVED
* MISSION ASKED - server was asked to send / not send mission
<br/>ROLE ASSIGNED
* ROLE ASSIGNED - role was assigned (and confirmed)
<br/>MISSION ASKED
* MISSION RECEIVED - mission received
<br/>MISSION SELECTED
* GAME LOADED - island loaded, vehicles received
<br/>LOGGED IN
* BRIEFING SHOWN - briefing was displayed
<br/>CONNECTED
* BRIEFING READ - ready to play mission
<br/>CREATED
* GAME FINISHED - game was finished
<br/>NONE - (Returns this in SP)
* DEBRIEFING READ - debriefing read, ready to continue with next mission


|= RETURNVALUE  
|= RETURNVALUE  

Revision as of 12:41, 19 February 2014

Hover & click on the images for description

Description

Description:
Returns client state in network game. Works on both, client and dedicated server.
Groups:
Uncategorised

Syntax

Syntax:
getClientState
Return Value:
String - Client state. Possible values are:
  • NONE - no client (or singleplayer)
  • CREATED - client is create
  • CONNECTED - client is connected to server, message formats are registered
  • LOGGED IN - identity is created
  • MISSION SELECTED - mission is selected
  • MISSION ASKED - server was asked to send / not send mission
  • ROLE ASSIGNED - role was assigned (and confirmed)
  • MISSION RECEIVED - mission received
  • GAME LOADED - island loaded, vehicles received
  • BRIEFING SHOWN - briefing was displayed
  • BRIEFING READ - ready to play mission
  • GAME FINISHED - game was finished
  • DEBRIEFING READ - debriefing read, ready to continue with next mission

Examples

Example 1:
_state = getClientState;

Additional Information

See also:
getPlayerUID

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