HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Rocket Launch

10-06-2005, 12:55 AM#1
Ice_Keese
I'm currently working on a map. In that map, you need to fire rockets. The rockets are summoned units that have autocast kaboom. The thing is, I want them to move horizontaly. I need to give them a target, but I want it to be as precise as possible, but I don't want to create hundreds of regions.

Anyone got an idea?
10-06-2005, 04:08 AM#2
yuripro84
i dont know your event and such, but heres the action i would use

Code:
Unit - Set rally-point to point
Set rally-point for (Triggering unit)to (Position of (Last created unit)) offset by (-999999.00 , 0.00))

Im not garunteeing anything, but im pretty sure this should work! If my algebra is right, changing the X value to a negative number will make them go horizantally to the left, if you want them to go to the right, then set it as 999999 instead, this will just make it keep going 'till they hit the end of the map...i guess? Well, tell me how it works!
10-06-2005, 07:08 PM#3
Tim.
Quote:
Originally Posted by Ice_Keese
I need to give them a target, but I want it to be as precise as possible, but I don't want to create hundreds of regions.

Please be more specific. How is the target chosen?
10-06-2005, 11:45 PM#4
Ice_Keese
Thanks yuri, it worked!

I had to replace "set rally point" with "issue order targeting a point", homewer.

Thanks a lot!
10-07-2005, 01:51 AM#5
yuripro84
then mone works perfectly, just use my action, excpet make it a positive 999999 not a negative! If you don't know the event, just do something like...if it's a spell
Quote:
When a unit casts a spell

Condition:
Cast spell = XXX
it's that easy, if you dont know that event, post again, i guess

EDIT: Why won't the code funtion work!
EDIT: or JASS, jeeze, this sucks
look, this anti-spam funtion is getting REALLY annoying right now, i can;t even edit w/o waiting, please, if you read this Draco, TAKE IT OFF