Bright Shadow - COOP 15 - Printable Version +- Comrades in Arms Discussion Board (http://forum.ciahome.net) +-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3) +--- Forum: Mission Releases (http://forum.ciahome.net/forumdisplay.php?fid=9) +--- Thread: Bright Shadow - COOP 15 (/showthread.php?tid=2863) Pages:
1
2
|
Re: Bright Shadow - COOP 15 - Variable - 01-22-2015 (01-22-2015, 11:10 AM)alias link Wrote: Yes, both missions tested on dedicated. Thanks man!Good man. Uploaded. Re: Bright Shadow - COOP 15 - Alwarren - 01-25-2015 Loadouts are duplicated in the mission. I had 40 M203's, and 7 medikits. You should really use the safeAddLoadout function Re: Bright Shadow - COOP 15 - alias - 01-26-2015 Thanks guys, i don't understand why this problem didn't manifest itself during the tests i had on dedicated with several people. I'll switch on FHQ loadout script, i will get on your toes AL Thank you in advance! Re: Bright Shadow - COOP 15 - alias - 01-26-2015 @Alwarren If i understood correctly this is how i should use FHQ gear script in init.sqf FHQ_fnc_safeAddLoadout = { Â Â _unit = _this select 0; Â Â _scriptName = _this select 1; Â Â if (!local _unit) exitWith {}; Â Â _isHandled = _unit getVariable "FHQ_loadout_handled"; Â Â Â Â if (isNil "_isHandled") then { Â Â Â Â _unit setVariable ["FHQ_loadout_handled", true, true]; Â Â Â Â _unit call compile preprocessFileLineNumbers _scriptName; Â Â }; }; // wait for player to actually be in mission if (!isDedicated) then { Â Â waitUntil {!(isNull player)}; Â Â waitUntil {alive player}; }; // handle loadout for each unit if (local unit_name) then {[unit_name, _loadout] call FHQ_fnc_safeAddLoadout;} Thanks for the feedback! Re: Bright Shadow - COOP 15 - Alwarren - 01-26-2015 This should work, provided you do it for each unit, i.e. { [_x, _loadout] call FHQ_fnc_safeAddLoadout;} foreach playableUNits; or something of that nature. Re: Bright Shadow - COOP 15 - alias - 02-04-2015 Updated. Same link as in OP. Changes - looping script - gear - few small changes in triggers and elements on the map Re: Bright Shadow - COOP 15 - Variable - 02-04-2015 Uploaded. |