csk222 23 Posted October 2, 2014 How do I set the skill level for Armor and/or Vehicles? (Example) If I spawn a sniper team like this: if (opfortype == "SniperTeam") then { tgn = format["%1", opforgrp]; opforgrp = createGroup east; opforicon = "o_recon"; snpr = format["snpr%1", vehcnt]; sptr = format["sptr%1", vehcnt]; "O_sniper_F" createUnit [getMarkerPos opformrkr, opforgrp,"snpr = this;opforgrp = group this;", 0.4, "sergeant"]; "O_spotter_F" createUnit [getMarkerPos opformrkr, opforgrp,"sptr = this;opforgrp = group this;", 0.3, "corporal"]; snpr setUnitPos "DOWN"; sptr setUnitPos "DOWN"; opforgrp setSpeedMode "NORMAL"; opforgrp setCombatMode "STEALTH"; opforgrp setBehaviour "AWARE"; opforcrt = true; }; How can I adjust skill level for the following: if (opfortype == "APCTeam") then { tgn = format["%1", opforgrp]; opforgrp = createGroup east; opforicon = "o_armor"; apcname = format["APC%1", vehcnt]; apcname = [getMarkerPos opformrkr,0,"O_APC_Wheeled_02_rcws_F",opforgrp] call BIS_fnc_spawnVehicle; [opforgrp, getMarkerPos curmrkr, 180 ] call bis_fnc_taskPatrol; opforcrt = true; }; Share this post Link to post Share on other sites
iceman77 18 Posted October 2, 2014 As far as I know vehicle objects don't have skill levels, but there's setSkill Array anyhow. Share this post Link to post Share on other sites
csk222 23 Posted October 2, 2014 (edited) Thank you, I made the following changes but now I want to think up a way to scale/judge the changes to adjust the skill levels up or down (assuming its working properly) if (opfortype == "APCTeam") then { tgn = format["%1", opforgrp]; opforgrp = createGroup east; opforicon = "o_armor"; apcname = format["APC%1", vehcnt]; apcname = [getMarkerPos opformrkr,0,"O_APC_Wheeled_02_rcws_F",opforgrp] call BIS_fnc_spawnVehicle; // SET SKILL LEVELS { _x setskill ["aimingAccuracy",0.3]; _x setskill ["aimingShake",0.9]; _x setskill ["aimingSpeed",0.3]; _x setskill ["spotDistance",0.65]; _x setskill ["spotTime",0.3]; _x setskill ["courage",0.75]; _x setskill ["commanding",0.9]; _x setskill ["general",0.6]; _x setskill ["endurance",1.0]; _x setskill ["reloadSpeed",0.3]; } forEach units opforgrp; [opforgrp, getMarkerPos curmrkr, 180 ] call bis_fnc_taskPatrol; opforcrt = true; }; Edited October 3, 2014 by csk222 Share this post Link to post Share on other sites
csk222 23 Posted October 3, 2014 Update: How about this? if (opfortype == "APCTeam") then { tgn = format["%1", opforgrp]; opforgrp = createGroup east; opforicon = "o_armor"; apcname = format["APC%1", vehcnt]; apcveh = "O_APC_Wheeled_02_rcws_F" createVehicle getMarkerPos opformrkr; "O_crew_F" createUnit [getMarkerPos opformrkr, opforgrp,"apcdriver = this; opforgrp = group this;", 0.9, "sergeant"]; "O_crew_F" createUnit [getMarkerPos opformrkr, opforgrp,"apcgunner = this; opforgrp = group this;", 0.7, "corporal"]; apcdriver moveInDriver apcveh; apcgunner moveInGunner apcveh; [opforgrp, getMarkerPos curmrkr, 180 ] call bis_fnc_taskPatrol; opforcrt = true; }; Share this post Link to post Share on other sites