Working With Stations in MD

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

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

kevrlet
Posts: 13
Joined: Mon, 3. Dec 18, 03:56
x4

Working With Stations in MD

Post by kevrlet »

I am completely unfamiliar with this game's data structure. Is there a way to find the station the player is currently on and get a list of modules attached to that station?
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13489
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Working With Stations in MD

Post by euclid »

Hi kevrlet :-)

Short answer: Yes. ;-)

Tad longer answer: You need to write a script that triggers when you are docked and then obtains all modules and writes them to a file.

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

Return to “X4: Foundations - Scripts and Modding”