• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

[JASS] Making troops attack ONLY when the Assault group is ready

Status
Not open for further replies.
Level 14
Joined
Nov 17, 2020
Messages
188
call InitAssaultGroup()
call CampaignAttackerEx( 1,1,1, 'Udre' )
call CampaignAttackerEx( 7,7,7, 'u001' )
call CampaignAttackerEx( 2,2,2, BANSHEE )
call CampaignAttackerEx( 2,2,2, 'unec' )
call SuicideOnPlayerEx(M4,M4,M4,User)

Using this, when 4 minutes passes the group will attack, no matter if its completed or there's only 1 troop, there's a simple way to WAIT until the troops are ready and THEN send the attack?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,266
Might have to change your wait logic so it checks that all the units are available. The campaign AI was scripted around the computer player cheating and so always completing the build up in time unless their base was destroyed, as such it might not include examples of such logic.
 
Status
Not open for further replies.
Top