Jump to content
Sign in to follow this  
oneisdown

subskill settings for a specific type of unit via script.

Recommended Posts

I am using the script snippet "Adding Custom Inits to Spawned Units" in the ALIVE wikki to do a custom load out for spawned units using RHS Russian troops (msv). I need to make just the RPG and rocket launching troops way less accurate. Is there a way to add a line into the script using the "aiming accuracy sub skill" settings for just these types of RPG units? This snippet works perfect for night battles, but the RPG soldiers need less accuracy. I am using Dac to spawn the bad guys.

private "_unit";
_unit = _this select 0;

if (side _unit == east) then {
    _unit removeMagazines "rhs_30Rnd_545x39_7N10_AK";
    _unit removePrimaryWeaponItem "rhs_30Rnd_545x39_7N10_AK";
    _unit addPrimaryWeaponItem "rhs_30Rnd_545x39_AK_green";
    _unit addMagazines ["rhs_30Rnd_545x39_AK_green", 12];
   
};

private "_unit";
_unit = _this select 0;

if (side _unit == west) then {
    _unit removeMagazines "rhs_mag_30Rnd_556x45_Mk318_Stanag";
    _unit removeItem "rhsusf_ANPVS_14";
    _unit removePrimaryWeaponItem "rhs_mag_30Rnd_556x45_Mk318_Stanag";
    _unit addPrimaryWeaponItem "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";

    _unit addMagazines ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 13];
    
};

Share this post


Link to post
Share on other sites

I can use that for the units that I place in the editor but for units that are spawned by Dac and ALIVE have to be scripted in. 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×