How can you set the visible name of a ship in MD?

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

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

Post Reply
NewColours
Posts: 15
Joined: Mon, 18. Nov 13, 21:56
x4

How can you set the visible name of a ship in MD?

Post by NewColours » Sun, 9. Dec 18, 12:36

I don't want to set the variable name, but the actual ingame name of the ship, when created in MD.

Is it possible?

Antaran
Posts: 166
Joined: Wed, 6. Nov 02, 20:31
x3tc

Re: How can you set the visible name of a ship in MD?

Post by Antaran » Tue, 11. Dec 18, 18:42

This should do the trick, this sets the value of Somename1 into the players target object.

<set_object_name name="'Somename1'" object="player.target" />

Post Reply

Return to “X4: Foundations - Scripts and Modding”