Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How do you detect unit movement direction?
How do you detect unit movement direction?
This topic is locked. You can no longer write replies here.
May 25 2009, 2:18 am
By: scwizard  

May 25 2009, 2:18 am scwizard Post #1



Lets say you have a flying unit, for instance a scout, how do you detect what direction its moving in? How accurately can you do this?



None.

May 25 2009, 2:26 am ForTheSwarm Post #2



You'd use a mobile grid, and it can be as accurate as a 1/4 x 1/4 square, IIRC.



None.

May 25 2009, 2:43 am Kaias Post #3



Quote from Pigy_G
Quote
You'd use a mobile grid

Thank you, Captain Obvious.
You can't really assume how experienced people are, someone needed to say it.

There are a few ways, it really depends on what resources you can dedicate to it and how accurate you want it. For instance, with mobile grids you can center a bunch of locations around the unit detect which it is in wait x amount of time and recheck, the difference in position (based on locations it is in) is the direction.

You could also use a location grid to get unit positions- look up FRAGS material.



None.

May 25 2009, 3:31 am scwizard Post #4



Lethal just taught me a pixel perfect way to detect how the x and y coordinates of a unit change from one trigger cycle to the next. It uses inverse locations.

So yeah, this topic is kind of moot now.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
[2026-4-15. : 11:43 pm]
Moose -- you don't
[2026-4-15. : 10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
Please log in to shout.


Members Online: akirasmith435, anoeth47