Сoordinates (x, y, z)

The place to discuss scripting and game modifications for X4: Foundations.

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

Post Reply
Shamon
Posts: 12
Joined: Wed, 21. Nov 18, 10:37

Сoordinates (x, y, z)

Post by Shamon » Fri, 22. May 20, 17:28

How to find out your coordinates (x, y, z) in a room (bar)? Thank.

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13293
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Сoordinates (x, y, z)

Post by euclid » Fri, 22. May 20, 22:56

Although I have not tested that myself, I doubt that are able to get the position data via script directly. The best approach is to find the xml file of that room (or that bar) and then search the file for the position data of a particular NPC which should look like this

Code: Select all

<position x="-0.8220544" y="0.25432" z="-4.12589"/> 
From there you should be able to determine the origin and orientation (just change the position to

Code: Select all

<position x="0.0" y="0.0" z="0.0"/>
and then check in-game where the NPC stands now).

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

BrummBear02
Posts: 308
Joined: Fri, 3. Oct 08, 20:43
x3ap

Re: Сoordinates (x, y, z)

Post by BrummBear02 » Sun, 24. May 20, 00:14

my approach would be importing the room into blender and find them there. i do almost everything with blender lol.
Gebt mir einen Spiegel dann schlage ich ihn mit seinem eigenen Gesicht

Shamon
Posts: 12
Joined: Wed, 21. Nov 18, 10:37

Re: Сoordinates (x, y, z)

Post by Shamon » Wed, 27. May 20, 07:02

BrummBear02 wrote:
Sun, 24. May 20, 00:14
my approach would be importing the room into blender and find them there. i do almost everything with blender lol.
Tell me how to find the coordinates in Blender?

BrummBear02
Posts: 308
Joined: Fri, 3. Oct 08, 20:43
x3ap

Re: Сoordinates (x, y, z)

Post by BrummBear02 » Sun, 14. Jun 20, 02:50

Shamon wrote:
Wed, 27. May 20, 07:02
BrummBear02 wrote:
Sun, 24. May 20, 00:14
my approach would be importing the room into blender and find them there. i do almost everything with blender lol.
Tell me how to find the coordinates in Blender?
create a small cube and look at its location? if u press N a tab for that opens. keep in mind that a location is relative to its root node. so create that cube without a parent node.
Gebt mir einen Spiegel dann schlage ich ihn mit seinem eigenen Gesicht

Post Reply

Return to “X4: Foundations - Scripts and Modding”