Jump to content

OSMOX

Member
  • Posts

    56
  • Joined

  • Last visited

Posts posted by OSMOX

  1. how would you add animals to this? it works on zeds but was wondering for hunter kill payout for hunting each type of wild animals

     

    private ["_zed","_killer","_kills","_array","_type","_humanity"];
     
    _array =  _this select 0;
    _zed =  _array select 0;
    _killer =  _array select 1;
    _type =  _this select 1;
     
    if (local _zed) then {
    _kills = _killer getVariable[_type,0];
    _killer setVariable[_type,(_kills + 1),true];
     
    //increase players humanity when zed killed
    _humanity = _killer getVariable["humanity",0];
    _humanity = _humanity + 1;
    _killer setVariable["humanity",_humanity,true];
     
    //Zombie kill award
    _killCash = _killer getVariable["cashMoney",0];
    _killer setVariable["cashMoney",(_killCash + 100),true];
     "Zombie Bounty Reward $100" call dayz_rollingMessages;
    };
  2. Trying to figure out how to make the ai patrols delete on mission complete on the DZMS that BetterDeadThanZed did. 

    This is whats int the mission..

    //Spawn patrol
    _patrol = ["patrol"] call DZMSGetVeh;
    [_coords,[(_coords select 0) + 30, (_coords select 1) + 30, 0],150,2,_patrol,31] call DZMSVehiclePatrol;

     

    End of mission

    diag_log text format["[DZMS]: Major SM1 %1 Mission has Ended.", _missName];
    deleteMarker "DZMSMajMarker";
    deleteMarker "DZMSMajDot";

     

    trying to add in delete of patrol veh as soon as the mission ends

     

  3. Just wondering if there is a  better way for missions distance so my 12 missions dont over lap .. seldom they do but was wondering  i have 780 military operation missions between all maj and minor 

    _disMaj = (_pos distance DZMSMajCoords);

    _disMin = (_pos distance DZMSMinCoords);
    _disMaj2 = (_pos distance DZMSMaj2Coords);
    _disMin2 = (_pos distance DZMSMin2Coords);
    _disMin3 = (_pos distance DZMSMin3Coords);
    _disMin4 = (_pos distance DZMSMin4Coords);
    _disMin5 = (_pos distance DZMSMin5Coords);
    _disMin6 = (_pos distance DZMSMin6Coords);
    _disMin7 = (_pos distance DZMSMin7Coords);
    _disMin8 = (_pos distance DZMSMin8Coords);
    _disMin9 = (_pos distance DZMSMin9Coords);
    _disMin10 = (_pos distance DZMSMin10Coords);

    _okDis = ((_disMaj > 2500) AND (_disMin > 2500) AND (_disMaj2 > 2500) AND (_disMin2 > 2500) AND (_disMin3 > 2500) AND (_disMin4 > 2500) AND (_disMin5 > 2500) AND (_disMin6 > 2500) AND (_disMin7 > 2500) AND (_disMin8 > 2500) AND (_disMin9 > 2500) AND (_disMin10 > 2500));!

  4. not sure if u still looking but i have this dzmsaispawn.sqf

    where i have my coins for the ai and works just fine no issues

    same for wai

     

     

    //Lets spawn the unit
    _unit = _unitGroup createUnit [_aiskin, [(_position select 0),(_position select 1),(_position select 2)], [], 10, "PRIVATE"];
     
    //Make him join the correct team
    [_unit] joinSilent _unitGroup;
     
    //Add the behaviour
    _unit enableAI "TARGET";
    _unit enableAI "AUTOTARGET";
    _unit enableAI "MOVE";
    _unit enableAI "ANIM";
    _unit enableAI "FSM";
    _unit setCombatMode "RED";
    _unit setBehaviour "COMBAT";
     
    //bank
            _cash = round(random 10) * 50; // number between 0 and 20 000
     
                    // Soul Hive
    _unit setVariable["CashMoney",_cash ,true];
     
    //Remove the items he spawns with by default
    removeAllWeapons _unit;
    removeAllItems _unit;
  5. Duplicate magazine 30Rnd_556x45_Stanag detected anyone have an idea on this ? trying to find topics  but nothing... just spams in rpt file

    12:25:11 Duplicate magazine 30Rnd_556x45_Stanag detected (id 2:8204) in slots Single and Single
    12:25:11 Duplicate magazine 30Rnd_556x45_Stanag detected (id 2:8204) in slots Single and Burst
    12:25:12 Duplicate magazine 30Rnd_556x45_Stanag detected (id 2:8204) in slots Single and Single
    12:25:12 Duplicate magazine 30Rnd_556x45_Stanag detected (id 2:8204) in slots Single and Burst
    12:25:12 Duplicate magazine 30Rnd_556x45_Stanag detected (id 2:8204) in slots Single and Single
    12:25:12 Duplicate magazine 30Rnd_556x45_Stanag detected (id 2:8204) in slots Single and Burst
     
    just stated past few days
×
×
  • Create New...