{"name":"BIS_fnc_sceneCheckWeapons","operator":null,"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","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Checks if participants have not missing weapon or have not it selected before scene\nFunction works as a toggle:\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","since":null,"effect":null,"exec":null,"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:\n\n0: Object - Unit to check\n\n1: String - Weapon type (primary, pistol)","types":["Array"],"since":null,"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:\n\n0: Object - Unit to check\n\n1: String - Weapon type (primary, pistol)"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"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;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_sceneSetObjects","BIS_fnc_objectsGrabber","BIS_fnc_objectsMapper"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Scenes","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}