Jump to content
Sign in to follow this  
Cryptdik

Help with a spawning script

Recommended Posts

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

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

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

"min_group_size" is a global variable does not belong in that list or maybe its supposed to be "_min_group_size"

  • Like 1

Share this post


Link to post
Share on other sites
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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×