Warning: file_put_contents(/ff_404540ba3aab9f6551fc2e4f4c0f011ee752c2a399773c18.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
getClientState - OFPEC Scripting Command Reference | OFPEC The Editing Center


Operand types


Type of returned value


Returns client state in network game. Works on both, client and dedicated server.

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

Used In



_state = getClientState;