Nexus Modding > Scripting

Renaming ships from a .rules file

(1/1)

Mularac:
Does someone know if there's a way to rename a ship (declared in a .sobj file) from within a .rules file? (campaign level scripting)

I couldn't find a command that would accomplish that. I tried using the RenameShip() command there but it crashes the game, however, if used within a mission on that ship but through the GetSceneObj command it will work, changing the name of the ship in the campaign level, too.

The Old Dragon:
As far as I know, the .sobj files are read only when in the game. In order to change a ship name from the .rules, all I can suggest is creating several versions of the ship in the relevant .sobj file and call the different versions depending on the name you want.

Navigation

[0] Message Index

Go to full version