getClientStateNumber: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.55|= Game version ______________...")
 
m (template:command argument fix)
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3dev |= Game name
|arma3|= Game name


|1.55|= Game version
|1.56|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 66: Line 66:
<td>Debriefing read, ready to continue with next mission</td>
<td>Debriefing read, ready to continue with next mission</td>
</tr>
</tr>
</table>|= Description
</table>|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''getClientStateNumber''' |= Syntax
| '''getClientStateNumber''' |SYNTAX=


| [[Number]] - Client state (see table above)
| [[Number]] - Client state (see table above)


|= RETURNVALUE
|RETURNVALUE=  


|x1= <code>_state = [[getClientStateNumber]];</code>|= EXAMPLE1
|x1= <code>_state = [[getClientStateNumber]];</code>|EXAMPLE1=  
|x2= <code>_inGame = [[getClientStateNumber]] > 8;</code>|= EXAMPLE1
|x2= <code>_inGame = [[getClientStateNumber]] > 8;</code>|EXAMPLE1=  
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[getClientState]], [[getPlayerUID]] |= SEEALSO
| [[getClientState]], [[getPlayerUID]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 15:39, 7 April 2019

Hover & click on the images for description

Description

Description:
Returns client state in network game. Works on both, client and dedicated server. The following states are possible:

getClientStateNumber     getClientState                   Description
0 "NONE" No client (or singleplayer)
1 "CREATED" Client is created
2 "CONNECTED" Client is connected to server, message formats are registered
3 "LOGGED IN" Identity is created
4 "MISSION SELECTED" Mission is selected
5 "MISSION ASKED" Server was asked to send / not send mission
6 "ROLE ASSIGNED" Role was assigned (and confirmed)
7 "MISSION RECEIVED" Mission received
8 "GAME LOADED" Island loaded, vehicles received
9 "BRIEFING SHOWN" Briefing was displayed
10 "BRIEFING READ" Ready to play mission
11 "GAME FINISHED" Game was finished
12 "DEBRIEFING READ" Debriefing read, ready to continue with next mission
Groups:
Uncategorised

Syntax

Syntax:
getClientStateNumber
Return Value:
Number - Client state (see table above)

Examples

Example 1:
_state = getClientStateNumber;
Example 2:
_inGame = getClientStateNumber > 8;

Additional Information

See also:
getClientStategetPlayerUID

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