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.
[10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
Please log in to shout.


Members Online: Roy