HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to determ a certain range ?

01-18-2004, 06:35 PM#1
chemo
okay i would like how i can determ a range between 2 units....
the range between the 2 units should be stored in variable and then create a unit from every "100" from the 2 units... any idea how ?

plz help me on this one :D
01-18-2004, 06:49 PM#2
Pesmerga
Set distancepoint = (Distance between (Position of (Triggering unit)) and (Position of (Triggering unit)))


distancepoint is a real variable. Then find 'Math - Distance between points' and do whatever u need to do after words

edit - and if you wanted to create a unit for every 100 units, then do

Set unitspawn = distancepoint / 100
01-18-2004, 06:52 PM#3
chemo
thank you very much (again)...
it looks like u got the all the answer i wants emote_sweat

but thx again :D
01-18-2004, 06:53 PM#4
Pesmerga
im glad i could help, im working on some serious triggers myself (with the help of Dorimus ;)
01-18-2004, 09:06 PM#5
Darimus
If you mean me, you mean Darimus...
01-18-2004, 09:27 PM#6
Pesmerga
whateva, o, a, same thing