{"name":"BIS_fnc_EXP_camp_manager_setState","title":"BIS fnc EXP camp manager setState","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_EXP_camp_manager_setState","revid":379566,"updated":"2026-10-31T13:55:37Z","groups":["CampaignManager"],"status":"ok","games":{"arma3":"1.62"},"since":"arma3 1.62","arma3_since":"1.62","locality":{"server_exec":true},"description":"Sets the mission state of an Apex campaign mission. The state is stored in the public missionNamespace variable `\"BIS_coop_campaign_ss_state\"` (broadcast to all machines) and the state's event is fired on the server with BIS_fnc_EXP_camp_manager_triggerEvent. Clients running BIS_fnc_EXP_camp_manager fire the event when they receive the new value.\nCalled on a client, the function shows an error and does nothing.\n\nValid states are `\"Waiting\"`, `\"Intro\"`, `\"Loadout\"` and `\"Started\"`. The function is meant for internal use: it is called by BIS_fnc_EXP_camp_manager on the server.","syntaxes":[{"syntax":"[state] call BIS_fnc_EXP_camp_manager_setState","params":[{"name":"state","type":"String","optional":true,"default":"\"Waiting\"","description":"the new mission state: \"Waiting\", \"Intro\", \"Loadout\" or \"Started\"","type_expr":"String","text":"state: String - (Optional, default \"Waiting\") the new mission state: \"Waiting\", \"Intro\", \"Loadout\" or \"Started\""}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["// on the server\n[\"Started\"] call BIS_fnc_EXP_camp_manager_setState;"]}],"see_also":["BIS_fnc_EXP_camp_manager","BIS_fnc_EXP_camp_manager_getState","BIS_fnc_EXP_camp_manager_triggerEvent"]}