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

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

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

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 »

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 »

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

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

Return to “X4: Foundations - Scripts and Modding”