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-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
[2026-5-31. : 2:55 pm]
Moose -- >reddit :rip2:
[2026-5-31. : 2:07 pm]
IskatuMesk -- reddit 💀
Please log in to shout.


Members Online: DarkenedFantasies, Symmetry