Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Science Vessels and Inverted Locations
Science Vessels and Inverted Locations
Nov 20 2008, 5:57 am
By: SelfPossessed  

Nov 20 2008, 5:57 am SelfPossessed Post #1



I'm trying to detect when a player moves a hero Science Vessel from its location. For every unit thus far, I've been using DatEdit, finding the unit, and then clicking on the graphics tab. I then use this formula for the coordinates of my location.

Left = Left + Right - 1
Top = Up + Down - 1
Right = 0
Bottom = 0

I then center the location on the appropriate unit. This has seemed to work for every unit thus far. Except, of course, the Science Vessel. The Science vessel has these stats

Left: 32
Right: 32
Up: 33
Down: 16

Which means I should be using a location that is

Left = 63
Top = 48
Right = 0
Bottom = 0

Except that the Science Vessel is never ever found in that location. Ever. What am I doing wrong?



None.

Nov 20 2008, 3:02 pm rockz Post #2

ᴄʜᴇᴇsᴇ ɪᴛ!

Locations center on the center of the unit. Use this formula:
2(min(left/up,right/down))-1. Those aren't division symbols either.

If the player moves the science vessel directly down, it won't be detected.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
Please log in to shout.


Members Online: RIVE