Space Engineers

Space Engineers

35 betyg
XYZ Position
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
359.007 KB
1 jan, 2015 @ 22:36
3 jan, 2015 @ 14:20
3 ändringsnotiser ( visa )

Abonnera för att ladda ner
XYZ Position

Beskrivning
This script allows you to track your ingame position much like many mods allow.

To use it, name any beacon or antenna with an opening bracket ( [ ) and then run the script. It is suggested to put the run action on a loop timer or hotkey for continious updates.

Orientation and velocity is possible, however they require more complex setups. Feel free to use this code as a basis for more advanced programs.
13 kommentarer
Nob-Stop 2 nov, 2019 @ 23:51 
it dosnt work now
password 3 mar, 2015 @ 9:40 
Would it be possible to have this script written to an LCD Panel?
0X800007D0 8 jan, 2015 @ 18:34 
Thanks for the code, it makes for a great starting to place to make a program that finds velocity, acceleration, and orientation among other things.
Elo 8 jan, 2015 @ 2:05 
*FREE TIP -- get in the habit of Caching Data meaning if you get a vaue you are going to need to lookup soon store it so you dont have to spend all the tiem and resources looking for it again every time
EXAMPLE

--BAD
double x = Math.Floor(blocks .GetPosition().GetDim(0));
double y = Math.Floor(blocks .GetPosition().GetDim(1));
double z = Math.Floor(blocks .GetPosition().GetDim(2));
var Location="X: " + x.ToString() + " Y: " + y.ToString() + " Z: " + z.ToString();

--BETTER
var BlockPosition=blocks .GetPosition();
double x = Math.Floor(BlockPosition.GetDim(0));
double y = Math.Floor(BlockPosition.GetDim(1));
double z = Math.Floor(BlockPosition.GetDim(2));
var Location="X: " + x.ToString() + " Y: " + y.ToString() + " Z: " + z.ToString();

--
Even better ...not as pretty
var Location=blocks .GetPosition().ToString();
Elo 8 jan, 2015 @ 2:05 
i fixed this script to be more eccicient and outlined a few things to help people depending on needs... over all major improvment

hope this helps you guys gain some knowledge http://pastebin.com/mj3YPG4W
Booperius 6 jan, 2015 @ 14:25 
YAY no more having to build obnoxious infinite range beacons for Nav in Servers...
MegaMech 3 jan, 2015 @ 14:41 
Yea it's great that we can use some System functions. Math probably even Clock. Convert.
Such simple but great tools.
It will be absolutely necessary once I start telling my drone to face a certain direction and then figure out which thrusters to activate.
Ben Snow 3 jan, 2015 @ 14:33 
BTW would you mind if I use your code in my own? I made a script for target practice drones, and I don't want them to go away too much from the point they were spawned...
Xaiier  [skapare] 3 jan, 2015 @ 14:22 
Thanks guys, I was under the false impression that I couldn't do something that simple due to things being blocked. It's updated now.
MegaMech 3 jan, 2015 @ 13:55 
@Ben Snow
He could also convert the strings to int or other type
lol you beat me to it! I was just going to mention that he didn't have to round... Awkwardly.