Jump to content
Sign in to follow this  
norm6669

Auto Mission

Recommended Posts

if (_RandomTroop < 40) then {
			_group = createGroup _EastSideHQ;
			_FirstUnit = _group createUnit ["RU_Soldier_SL", getPos EnnemyTrigger, [], 200, "NONE"];
			"RU_Soldier_GL" createUnit [getPos _FirstUnit, _group, "",0.2];
			"RU_Soldier_GL" createUnit [getPos _FirstUnit, _group, "",0.2];
			"RU_Soldier_MG" createUnit [getPos _FirstUnit, _group, "",0.2];
			"RU_Soldier_MG" createUnit [getPos _FirstUnit, _group, "",0.2];
			"RU_Soldier_AT" createUnit [getPos _FirstUnit, _group, "",0.2];
			"RU_Soldier_AT" createUnit [getPos _FirstUnit, _group, "",0.2];
			"RU_Soldier_LAT" createUnit [getPos _FirstUnit, _group, "",0.2];
			"RU_Soldier_LAT" createUnit [getPos _FirstUnit, _group, "",0.2];
			"RU_Soldier_AR" createUnit [getPos _FirstUnit, _group, "",.02];
			"RU_Soldier_Marksman" createUnit [getPos _FirstUnit, _group, "",0.2];
			"RU_Soldier" createUnit [getPos _FirstUnit, _group, "",0.2];
		};

Thats what I edited it too, .2 should be an extreme distance, but upon flying in a chopper to a location all enemy AI Units are shooting at the chopper roughly 1500 km away. They continue to track your location after that and fire upon you. Way more difficult then .2.

Share this post


Link to post
Share on other sites

One thing (don't think this is all the problem but who knows)

Your commander is not included. You must insert:

_FirstUnit setSkill 0.2;

Also I don't know about this:

If "SuperAI" is turned on in the Difficulty Menu, the skill level is always 1, no matter what was defined in the editor or via this command. (ref.: http://community.bistudio.com/wiki/setSkill )

I play on regular. I guess you don't play with the settings maxed either.

Edited by norm6669

Share this post


Link to post
Share on other sites

I'm going to try that tonight. I also tried adding more towns to attack randomly. I got up to 44 different random areas.

if (AreaClear) then {

	while { NewTargetName == _OldTargetName } do {
		NewTargetName = "PossibleEnnemies" + str( ceil (random 44) );
	};

I edited the code to that. However in the multiplayer game it just cycles through the towns and never spawns AI.

Share this post


Link to post
Share on other sites

Other than making sure the markers are properly named, PossibleEnnemies1 to PossibleEnnemies44, I don't know what else could go wrong.

If you want me to have a look, pack your mission (all of it) into a nice little pbo and upload it somewhere.

Share this post


Link to post
Share on other sites

Norm, I figured out what the problem was.

When adding the Unitskill to the Group Leader, for some reason it makes the ennemie area randomly jump, instead of waiting for the town to be cleared, once the Unit skill is removed from the group leader this error stops.

Share this post


Link to post
Share on other sites

But my version of the mission is working properly. And I use the setskill on the leader. So why do you have this problem and not me? (I guess we'll never find out)

Share this post


Link to post
Share on other sites

Ah, I see what I've done. Would you be interested in collaborating on this mission, I've got alot of ideas, and been multiplayer testing them with my roomates.

Share this post


Link to post
Share on other sites

Sure I can help. If it's a totally original mission you should start your own thread and inform me via personal message of you thread.

The way I see it, you give me a "problem" to solve and I do a little demonstration mission, then we discuss it.

Also, I'm a working man and can usually help out only during the evening and weekend. Sometimes I'm gone for a few days for work too (I just came back from a three day trip today) I live in the EST time zone... Montréal!!!

Edited by norm6669

Share this post


Link to post
Share on other sites

Montreal, Fantastic place! I too am EST. I'll shoot you a PM.

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  

×