Ice_Rhino 3 Posted August 10, 2013 In ARMA 3 how can I set the AI so they are not as good at night. I am trying to create a sneak around placing explosives but the second I am with about 100m of the enemy they see me and open fire, even though it is 2am and I am all blacked out. Is there some kind of script I could apply to deal with this and dumb down their vision? I have tried removing their night vision but I can't really tell if it makes a difference. Somebody posted this on an ARMA II thread but not sure if or how it works in ARMA 3. If it would work how do I implement it? if (isServer) then { _setkills = 1; while {true} do { if (side _x == east) then { aimingAccuracy[] = {0, 0.16, 1, 0.20}; aimingShake[] = {0, 0.18, 1, 0.22}; aimingSpeed[] = {0, 1, 1, 1}; courage[] = {0, 1, 1, 1}; commanding[] = {0, 1, 1, 1}; endurance[] = {0, 1, 1, 1}; general[] = {0, 1, 1, 1}; reloadSpeed[] = {0, 1, 1, 1}; spotDistance[] = {0, 1, 1, 1}; spotTime[] = {0, 1, 1, 1}; } foreach allunits; sleep 5; }; }; Thanks Share this post Link to post Share on other sites
Johnson11B2P 3 Posted August 10, 2013 (edited) Instead of using arrays for the value just put one constant integer. { _x setSkill ["aimingspeed", 0.5]; _x setSkill ["spotdistance", 0.3]; _x setSkill ["aimingaccuracy", 0.2]; _x setSkill ["aimingshake", 0.0000005]; _x setSkill ["spottime", 0.3]; _x setSkill ["commanding", 0.9]; _x setSkill ["general", 0.9];} forEach allUnits; Edited August 10, 2013 by Johnson11B2P forgot to close CODE Share this post Link to post Share on other sites
Ice_Rhino 3 Posted August 10, 2013 Instead of using arrays for the value just put one constant integer.{ _x setSkill ["aimingspeed", 0.5]; _x setSkill ["spotdistance", 0.3]; _x setSkill ["aimingaccuracy", 0.2]; _x setSkill ["aimingshake", 0.0000005]; _x setSkill ["spottime", 0.3]; _x setSkill ["commanding", 0.9]; _x setSkill ["general", 0.9];} forEach allUnits; Thank you for your response, how do I implement the code? Share this post Link to post Share on other sites
Johnson11B2P 3 Posted August 10, 2013 Put what I posted in your init.sqf. Also if still find that the A.I. is not to your liking you can always lower the values. Share this post Link to post Share on other sites
-ami- mofo 13 Posted August 10, 2013 How bout just remove their NVG's? Share this post Link to post Share on other sites
kdk11 1 Posted August 10, 2013 Yeah like -AMI- MoFo said, remove their NVG's by putting this code in each of their init; removeAllAssignedItems this; Maybe there is a more specific code just for NVG's but that will work. And as it is just AI then it doesn't matter about removing bino's maps etc. Share this post Link to post Share on other sites
Ice_Rhino 3 Posted August 10, 2013 I am already using this unassignItem "NVGoggles"; this removeItem "NVGoggles"; . They still pick me off even though it is 2am, they are in lit area and I am 50 to 100m away in the dark. That is not possible!!!! Share this post Link to post Share on other sites
Von Quest 1163 Posted August 10, 2013 Put in the init.sqf Drop the spot distance to 0.1 - 0.3 { _x setSkill ["general", 0.7]; _x setSkill ["commanding", 0.5]; _x setSkill ["courage", 0.3]; _x setSkill ["endurance", 0.6]; _x setSkill ["aimingaccuracy", 0.2]; _x setSkill ["aimingshake", 0.2]; _x setSkill ["aimingspeed", 0.7]; _x setSkill ["reloadspeed", 0.3]; _x setSkill ["spotdistance", 0.2]; _x setSkill ["spottime", 0.2]; } forEach allUnits; Fog also will hinder their sight significantly. Share this post Link to post Share on other sites
-ami- mofo 13 Posted August 11, 2013 I am already using this unassignItem "NVGoggles"; this removeItem "NVGoggles"; . They still pick me off even though it is 2am, they are in lit area and I am 50 to 100m away in the dark. That is not possible!!!! I remember removing NVG's from them in Arma 2 and we could get real close as long as we were nice and quite. That was using ACE 2 though so I'm not sure whether that changed things. Share this post Link to post Share on other sites
kylania 568 Posted August 11, 2013 as long as we were nice and quite. Share this post Link to post Share on other sites
-ami- mofo 13 Posted August 11, 2013 HAHA!!! yes mate my grammar rather failed just then :P Share this post Link to post Share on other sites
shinkicker 5 Posted August 12, 2013 Interesting discussion, I have been looking to do something similar to this. One part missing here from what I can see is how to implement the values in the array when its only night time or foggy, or is this already looked after by engine itself? I suppose what I mean is, will those values not also dumb down during the day / clear weather too? Share this post Link to post Share on other sites
pipyn1970 19 Posted November 12, 2013 Hi there guys, I read with interest this post & wandered if I could ask a question or 2 along the same lines please? 1) would it be possible for someone to explain what all these names & values meen in a simple way please? 2) Even thou I want to "dumb down" the enemy ai for my MP missions, I also wanted to set ALL ai spot distance ranges. The question is could someone please help me with the settings for the below units: Any rifleman spotdistance 500M, Any LMG gunner 800M, Sniper & Spotter 1K. Then I would like the enemy to have all other settings lower than blufor please. I would like to know if I put the codes in every units init field or in the leader of that group please. Many many thanks in advance for any help given Share this post Link to post Share on other sites