Universe coordinates

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Ginger470
Posts: 158
Joined: Sun, 20. Jun 04, 03:24
x2

Universe coordinates

Post by Ginger470 »

Been looking for a way to retrieve absolute coordinates in the universe for the playership ....

reason: to get proximity to DeVries' star .... which I'd also need absolute coordinates for ....

Is there a way to get this info?

Many thanks :)
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

for that you only need the Cluster Position - the Galaxy Position is used for Clusters only, not for any Objects ;) (and would maybe make the values returned useless for you because of precision loss) but if you want:

<set_value name="$Zone_Position" exact="player.primaryship.position"/>
<transform_position name="$Sector_Position" refposition="player.primaryship.zone.position" refrotation="player.primaryship.zone.rotation"><position value="$Zone_Position"/></transform_position>
<transform_position name="$Cluster_Position" refposition="player.primaryship.sector.position" refrotation="player.primaryship.sector.rotation"><position value="$Sector_Position"/></transform_position>
<transform_position name="$Galaxy_Position" refposition="player.primaryship.cluster.position" refrotation="player.primaryship.cluster.rotation"><position value="$Cluster_Position"/></transform_position>

since the rotation is unused it is usually enough to simply add the coordinates at every level in an Excel Table
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
Ginger470
Posts: 158
Joined: Sun, 20. Jun 04, 03:24
x2

Post by Ginger470 »

TY :)

Return to “X Rebirth - Scripts and Modding”