• 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.

Accursed AI!

Status
Not open for further replies.
Level 11
Joined
Feb 11, 2010
Messages
199
How do I make the computer AI stop issuing orders to a unit controlled by a computer player, yet still allow it to get ordered around by triggers? Namely, I'm trying to get a unit to move around to various checkpoint when using Bladestorm, but the computer always cancels that command and makes it beeline straight for the nearest enemy (if the Computer isn't controlling the unit, there are no problems). Not having the computer at all isn't an option... it has to be there for various other units...
 
Level 8
Joined
Apr 30, 2009
Messages
338
you could try making a periodic event with a smooth framerate like every 0.03 seconds and trigger the movement entirely using "move unit instantly to point"
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
Add to your AI script a special exception via triggers. When the spell is cast you pass the exception to your AI script causing it to ignore the blademaster as part of the assult or as any group for that mater. After the spell ends you run another ending exception script which re-adds the unit to the group so it continues as normal.
 
Level 11
Joined
Feb 11, 2010
Messages
199
Add to your AI script a special exception via triggers. When the spell is cast you pass the exception to your AI script causing it to ignore the blademaster as part of the assult or as any group for that mater. After the spell ends you run another ending exception script which re-adds the unit to the group so it continues as normal.

Errr, how exactly do I do that?
 
Status
Not open for further replies.
Top