{"name":"BIS_fnc_EXP_camp_manager_triggerEvent","title":"BIS fnc EXP camp manager triggerEvent","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_EXP_camp_manager_triggerEvent","revid":379567,"updated":"2026-10-31T13:55:52Z","groups":["CampaignManager"],"status":"ok","games":{"arma3":"1.62"},"since":"arma3 1.62","arma3_since":"1.62","description":"Fires the scripted event that belongs to an Apex campaign mission state, on the machine where it is called, with BIS_fnc_callScriptedEventHandler on missionNamespace:\n\n- \"Waiting\" - \"BIS_coop_campaign_ss_missionWaiting\"\n- \"Intro\" - \"BIS_coop_campaign_ss_missionIntro\"\n- \"Loadout\" - \"BIS_coop_campaign_ss_missionLoadout\"\n- \"Started\" - \"BIS_coop_campaign_ss_missionStarted\"\n\nAny other state shows an error. The function does not change the mission state (see BIS_fnc_EXP_camp_manager_setState).\n\nThe function is meant for internal use. It is called by BIS_fnc_EXP_camp_manager (on state changes), BIS_fnc_EXP_camp_manager_setState and the campaign's state scripts, e.g. for players joining a mission in progress. The campaign's shared init script and the missions add the handlers with BIS_fnc_addScriptedEventHandler.","syntaxes":[{"syntax":"[state] call BIS_fnc_EXP_camp_manager_triggerEvent","params":[{"name":"state","type":"String","optional":true,"default":"\"Waiting\"","description":"the mission state: \"Waiting\", \"Intro\", \"Loadout\" or \"Started\"","type_expr":"String","text":"state: String - (Optional, default \"Waiting\") the mission state: \"Waiting\", \"Intro\", \"Loadout\" or \"Started\""}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[missionNamespace, \"BIS_coop_campaign_ss_missionStarted\", { systemChat \"Mission started\"; }] call BIS_fnc_addScriptedEventHandler;\n[\"Started\"] call BIS_fnc_EXP_camp_manager_triggerEvent; // shows \"Mission started\""]}],"see_also":["BIS_fnc_EXP_camp_manager","BIS_fnc_EXP_camp_manager_setState","BIS_fnc_EXP_camp_manager_getState","BIS_fnc_addScriptedEventHandler","BIS_fnc_callScriptedEventHandler"]}