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.
[04:10 am]
Ultraviolet -- I don't think so. I think they shut that shit down after 1.16, maybe even earlier
[02:19 am]
Symmetry -- NudeRaider
NudeRaider shouted: Symmetry I can't tell if it's relevant. You provided literally no context so I was providing an equally generic answer.
Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
[11:43 pm]
Ultraviolet -- let's take each other's clothes off :teach:
[11:03 pm]
Vrael -- :teach:
[11:03 pm]
Vrael -- I mean, my clothes
[11:03 pm]
Vrael -- I will take your clothes off
[07:13 pm]
NudeRaider -- I am gettin' so hot :teach:
[04:08 pm]
lil-Inferno -- so take off all your clothes
[02:38 pm]
Ultraviolet -- ooh it's gettin hot in here
[09:38 am]
NudeRaider -- Symmetry
Symmetry shouted: I meant more why is it relevant
I can't tell if it's relevant. You provided literally no context so I was providing an equally generic answer.
Please log in to shout.


Members Online: l)ark_ssj9kevin, Ultraviolet, Zycorax