Cryptdik 5 Posted May 26, 2017 Trying to use a script to spawn AI attackers but the downloaded version is giving me an error. Dynamic AI Spawn System by Lt.Killer(SAS) and Cpt.Killer(SAS) http://www.armaholic.com/page.php?id=28107 I'm getting this error when I execute the script via trigger: |#|private ["_mingroups", "_max_groups", "...' Error Local variable in global space Here's the line it's from: private ["_min_groups", "_max_groups", "min_group_size", "_max_group_size", "_number_groups", "_man_type"]; private ["_this_speed","_speed","_this_formation","_formation","_formation_count","_this_group","_this_man_odds","skill_odds","_skill_index"]; I'm using the IFA3 mod for this, but that shouldn't be causing this problem should it? Share this post Link to post Share on other sites
Grumpy Old Man 3547 Posted May 26, 2017 There's an abundancy of AI spawn scripts. Why you have to use one that's almost 2 years old and hasn't been updated since the initial release is beyond me. Cheers Share this post Link to post Share on other sites
cb65 86 Posted May 26, 2017 Hi Cryptdik, I had a quick look at the script and I think your problem might be this line of code at the top of the script. private ["_this_speed","_speed","_this_formation","_formation","_formation_count","_this_group","_this_man_odds","skill_odds","_skill_index"]; "skill_odds" should be like this "_skill_odds", private ["_this_speed","_speed","_this_formation","_formation","_formation_count","_this_group","_this_man_odds","_skill_odds","_skill_index"]; Hope this helps. Share this post Link to post Share on other sites
Jigsor 176 Posted May 26, 2017 "min_group_size" is a global variable does not belong in that list or maybe its supposed to be "_min_group_size" 1 Share this post Link to post Share on other sites
cb65 86 Posted May 26, 2017 5 minutes ago, Jigsor said: "min_group_size" is a global variable does not belong in that list or maybe its supposed to be "_min_group_size" Good pick up I missed that one. CB. Share this post Link to post Share on other sites
anfo 118 Posted May 26, 2017 2 hours ago, Grumpy Old Man said: Why you have to use one that's almost 2 years old and hasn't been updated since the initial release is beyond me. I'd also advise against this script, due this happening to me when I tried it last year: Allow me if I may to offer a 2016 update for this script. The script does all it advertises except for one small oversight. The script will put enemy groups on the (blufor activated) trigger location as described, but will also put enemy groups *anywhere* where BLUFOR exist on a map. e.g. Have you got a player on the other side of the map on a tarmac who is acting as CAS? He will be attacked in that location. Players waiting at a respawn marker? They will be attacked at their location. It is like one enormnous simultaneous attack of any and all BLUFOR where-ever they are, whether you wanted it that way or not! GG Share this post Link to post Share on other sites