{"name":"BIS_fnc_sceneCheckWeapons","title":"BIS fnc sceneCheckWeapons","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_sceneCheckWeapons","revid":347989,"updated":"2023-11-08T10:17:48Z","groups":["Scenes"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Checks if participants have not missing weapon or have not it selected before scene\nFunction works as a toggle:\n\n- 1st run of script: running in SETUP mode - sets correct weapons for scene\n- 2nd run of script: running in RESTORE mode - restore origin weapons(delete weapons after scene if character hadn't any)","syntaxes":[{"syntax":"[participants] call BIS_fnc_sceneCheckWeapons","params":[{"name":"participants","type":"Array of Arrays","optional":true,"default":"`[[BIS_Cooper, \"primary\"],[BIS_Ohara, \"primary\"],[BIS_Rodriguez, \"primary\"],[BIS_Sykes, \"primary\"],[BIS_Miles, \"primary\"]]`","description":"an array of arrays in format:\n0: Object - Unit to check\n1: String - Weapon type (primary, pistol)","type_expr":"Array<Array>","text":"participants: Array of Arrays - (Optional, default `[[BIS_Cooper, \"primary\"],[BIS_Ohara, \"primary\"],[BIS_Rodriguez, \"primary\"],[BIS_Sykes, \"primary\"],[BIS_Miles, \"primary\"]]`) an array of arrays in format:\n0: Object - Unit to check\n1: String - Weapon type (primary, pistol)"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"text":"```sqf\n[\n    [BIS_Cooper, \"primary\"],\n    [BIS_Ohara, \"primary\"],\n    [BIS_Rodriguez, \"primary\"],\n    [BIS_Sykes, \"primary\"],\n    [BIS_Miles, \"primary\"]\n] call BIS_fnc_sceneCheckWeapons;\n```","code":["[\n\t[BIS_Cooper, \"primary\"],\n\t[BIS_Ohara, \"primary\"],\n\t[BIS_Rodriguez, \"primary\"],\n\t[BIS_Sykes, \"primary\"],\n\t[BIS_Miles, \"primary\"]\n] call BIS_fnc_sceneCheckWeapons;"]}],"see_also":["BIS_fnc_sceneSetObjects","BIS_fnc_objectsGrabber","BIS_fnc_objectsMapper"]}