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

[AI] A little question

Status
Not open for further replies.
Level 3
Joined
May 1, 2007
Messages
34
I'm just wondering how do you add custom made units to attack groups/building defense etc in scripts.

I haven't really had much time to test it, but the only time I tried it, it didn't work, however maybe I missed something else on the code but I do not remenber already :/.

I guess I click ctrl D and use the 'codename' of the unit or?

like:
JASS:
  call CampaignAttackerEx( 6, 6, 6, Custom Unit )
 
Last edited by a moderator:
Level 7
Joined
Jun 4, 2006
Messages
127
So you looking for a code/trigger which makes customly made units to attack groups or building defenses?

You don't really need coding on that, just some triggers and it'll work..

You can:
• Set a group variable to those groups who are going to attack you or something (If you know how to set it)
• Check if they get near on a building made for defense, they could retreat/attack depending on their Group Size.
• You could always create your own AI Editor (Importing those Custom Units), just name it and maybe someone can help you make one..
 
Status
Not open for further replies.
Top