01-22-2015, 11:15 AM
Pages: 1 2
01-25-2015, 10:54 PM
Loadouts are duplicated in the mission. I had 40 M203's, and 7 medikits. You should really use the safeAddLoadout function
01-26-2015, 02:31 PM
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!
I'll switch on FHQ loadout script, i will get on your toes AL Thank you in advance!
01-26-2015, 03:54 PM
@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!
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!
01-26-2015, 03:59 PM
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.
{ [_x, _loadout] call FHQ_fnc_safeAddLoadout;} foreach playableUNits;
or something of that nature.
02-04-2015, 09:24 PM
Updated. Same link as in OP.
Changes
- looping script
- gear
- few small changes in triggers and elements on the map
Changes
- looping script
- gear
- few small changes in triggers and elements on the map
02-04-2015, 09:58 PM
Uploaded.
Pages: 1 2