Arma 3 Scripting

BIS_fnc_EXP_camp_manager_setState

  • Server only
  • Arma 3 v1.62

Function · Markdown · JSON · original wiki page

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. Called on a client, the function shows an error and does nothing.

Valid 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.

Syntax

[state] call BIS_fnc_EXP_camp_manager_setState

Parameters:

Returns: Nothing

Examples

Example 1

// on the server
["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