HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with 2 triggers

07-18-2003, 05:47 AM#1
Fragmentation
1st Question -

I need to know if there is a way to make a unit do my attack that I want it to do but not move from the region it spawned at thru my trigger

I basically made a unit spawn in this small region I made, is there a way to prevent it from moving and to just stay there and continue its attack?

2nd Question -

I made a unit spawn and then thru a next trigger made last created unit attack a random point in region so and so, once I do this the unit keeps attacking that same point it randomly picked.

Is there a way as simply as possible to make that unit attack a different point each time it randomly picks a point to attack?



All help is appreciated thank you
07-18-2003, 05:59 AM#2
Pesmerga
1)
Event - A unit enters region 0001
Action - Order unit to attack ground at point 0002
(give it the attack ground ability)

2) make a big region that you want it to attack within

Event - Every 5 seconds of game time
Action - Order Unit to attack ground at (random point in region 0003)

Im not sure if you can order a unit to attack nothing, so give it the attack ground ability. It takes a hell of alot more triggers to make the unit go to a differen point exactly after he attacks, its better to just make it a random time.
07-18-2003, 07:21 AM#3
Fragmentation
Ok overall all I need right now is for the spawned unit thru my trigger to attack random places

right now I have a set spawn for a unit, A unit of its type spawns every 10 seconds, ultimately 8 will spawn, I set the regions where each will spawn too

everything goes well when they spawn..but...their AI is hard coded (I think) to pick an enemy unit near it and attack


That is what its doing...but, I dont want that to happen I jus want it to randomly attack a part of said region with random points every time

any simple way of doing this neone?

Thanks
07-18-2003, 07:24 AM#4
Pesmerga
It has to do with alliances. In a trigger you can set a player to treat the player like an ally.
07-18-2003, 08:15 AM#5
zotax
Hey nightblade, where you ever on the warcraft stragey forums?
Or was that just someone else with your username?
07-18-2003, 10:11 AM#6
Fragmentation
was someone else zotax not me

:////