HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attack commands

06-04-2004, 07:02 PM#1
anctan
I'd be glad if someone could tell me what attack commands can I use.

call InitAssaultGroup()
call CampaignAttackerEx( 0,2,0, ...)
call CampaignAttackerEx( 0,1,0, ...)
call SuicideOnPlayer(15,blue)

This is the only one I know. What should I use if I want a player attack specific another player's targets (buildings, units, heros)?
06-04-2004, 09:37 PM#2
Tommi
You need to use a looping AttackMoveKillXY. However, it takes the coordinates in. Therefore, you have to somehow get the coordinates. It is typically done through a unit group function. See the AI in the following scenario for example:

http://www.hut.fi/~tgustafs/dwarves1.html

Edit: Actually, the above uses a looping AttackMoveKill, which is the right way to do it. I was a bit lost yesterday when I wrote about XY. :\

Cheers,

Tommi