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.
[2026-4-29. : 2:00 am]
l)ark_ssj9kevin -- hi jamal
[2026-4-29. : 12:18 am]
Heinermann -- memes
[2026-4-28. : 10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[2026-4-28. : 4:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: anoeth47