Announcement

Collapse
No announcement yet.

Help needed with dispersion script

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help needed with dispersion script

    Hello all,

    As the talented scripters that you are. I am requesting a script that will alter the AI's behaviour with their skills being altered.
    Mainly, I am looking to alter this "aimingAccuracy[] = {0, 0, 1, 1};" within the AI units.

    wiki/CfgAISkill
    ai-dispersion-increased-for-more-immersion/page-3

    Usage:
    To enable it as a script (HD.sqf) within the mission directory prior to pbo-ing the file. As well as activating it via a large trigger to enforce that script during the game.

    Either way, as long as we have a workable method to manually tune their "aimingAccuracy" ratings that will be a great start.

    Using the 3rd party mod is the easiest option from my non-extensive search. But it would be so much more useful to have it as a script without having to use an addon.

    Awaiting with glee with your expertise.

    Thanks

    TGU Instructor TG Pathfinder

    Former TGU Dean Former ARMA Admin Former Irregulars Officer

    "Do not seek death. Death will find you. But seek the road which makes death a fulfillment." - Dag Hammarskjold

  • #2
    Re: Help needed with dispersion script

    aiSkillSet.sqf - as is running in the Insurgency mission
    Code:
    _run = true;
    
    while {_run} do
    {
    	{
    		_x setSkill ["aimingAccuracy", 0.23];
    		_x setSkill ["aimingShake", 0.3];
    		_x setSkill ["aimingSpeed", .2];
    		sleep .2;
    	} forEach allunits;
    	sleep 60;
    };
    This is in the Template Mission

    This will just set the ai skill for all units every 60 seconds so regardless if your ai spawn in dynamically or are placed from the get go, this method will still work.
    |TG-189th| Unkl
    ArmA 3 Game Officer
    Dean of Tactical Gamer University
    189th Infantry Brigade Member
    SUBMIT A RIBBON NOMINATION OR CONTACT AN ARMA ADMIN
    "We quickly advance in the opposite direction and take cover in a house on the SW side of town." - BadStache

    Comment


    • #3
      Re: Help needed with dispersion script

      Awesome! I'll check it out yesterday.

      TGU Instructor TG Pathfinder

      Former TGU Dean Former ARMA Admin Former Irregulars Officer

      "Do not seek death. Death will find you. But seek the road which makes death a fulfillment." - Dag Hammarskjold

      Comment

      Connect

      Collapse

      TeamSpeak 3 Server

      Collapse

      Advertisement

      Collapse

      Twitter Feed

      Collapse

      Working...
      X