BIS_fnc_EXP_camp_manager_onPlayerRegistered
- Server only
- Arma 3 v1.62
Function · Markdown · JSON · original wiki page
Description
Registers a player as having finished a phase of the Apex campaign mission start (see BIS_fnc_EXP_camp_manager): the player is added (once) to the array stored in the server's missionNamespace variable listName. The array is not broadcast. Nothing is added if player is objNull. Called on a client, the function shows an error and does nothing.
The function is meant for internal use. Clients call it on the server with remoteExecCall from the campaign's state scripts, with these lists:
"BIS_coop_campaign_ss_preloadPlayers"- the player has finished preloading; the manager waits for this list in the"Waiting"state"BIS_coop_campaign_ss_introPlayers"- the player has finished watching the intro videos"BIS_coop_campaign_ss_loadoutPlayers"- the player has respawned during the loadout selection; the manager waits for this list in the"Loadout"state
Syntax
[player, listName] call BIS_fnc_EXP_camp_manager_onPlayerRegistered
Parameters:
player: Object - (Optional, default objNull) the player to registerlistName: String - (Optional, default "") name of the missionNamespace variable holding the list of registered players
Returns: Nothing
Examples
Example 1
[player, "BIS_coop_campaign_ss_loadoutPlayers"] remoteExecCall ["BIS_fnc_EXP_camp_manager_onPlayerRegistered", 2];
See also
BIS_fnc_EXP_camp_manager · BIS_fnc_EXP_camp_manager_setState · BIS_fnc_EXP_camp_manager_triggerEvent