Re: RELEASE: DaiZy Chernarus 1.7.6.1 FACTIONS (Full AI)

Posted by brado on
URL: http://kodabar-dayz-daizy-single-player-forum.163.s1.nabble.com/RELEASE-DaiZy-Chernarus-1-7-6-1-FACTIONS-2-1-07-11-FINAL-RELEASE-tp4144p4647.html

Haleks and Above...... the medic does heal you/player aswell as the AI survivors...is there anyway to make a trigger for the medic as the bandits/survivors/tents/wrecks..

i named the triggers medic and then made a doSomething_RandMedic file and a doSomething_medic file
i copied the survivors SQF file (doSomething_survivor) by changing anything that had survivor to BAF_Soldier_Medic_MTP.



// private[""];
    for "_i" from 0 to 1 do {
      _p = [getpos player, random 360, random 200] call fnc_randomPos;
      if (count _p > 0) then {
        call compile format ["
        _m%1 = createMarker[""MRK%1"",[_p select 0,_p select 1]];
        _m%1 setMarkerShape ""ICON"";
        _m%1 setMarkerType ""DOT"";
        _m%1 setmarkercolor ""ColorGreenAlpha"";
      ",_i];
      };
         
                _pos = _p;
                _types = ["BAF_Soldier_Medic_MTP"];
               
                WEST setFriend [RESISTANCE, 0];
                WEST setFriend [EAST, 0];
                EAST setFriend [WEST, 0];
               
                _unit = group player createUnit [_type, _pos, [], 1.0, "FORM"];
                _this addEventHandler ["Fired", {(_this select 0) setvehicleammo 1}];
                _unit addEventHandler ["HandleDamage",{_this call local_zombieDamage;}];
                _unit addEventHandler ["Killed",{[_this,"humanKills"] call local_eventKill;}];
                _unit addEventHandler ["Killed",{["survivorKilled"] call fnc_humanity;}];
                _unit addEventHandler ["Killed",{_this call fnc_spawn_deathFlies;}];
               
           [_unit] call fnc_setBehaviour;
           
        };
        sleep .2;
        if (true) exitWith {};


but didnt work