Nexus Skirmisher

Nexus Modding => Scripting => Topic started by: Mularac on October 31, 2011, 05:30:58

Title: Renaming ships from a .rules file
Post by: Mularac on October 31, 2011, 05:30:58
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.
Title: Re: Renaming ships from a .rules file
Post by: The Old Dragon on November 03, 2011, 00:42:08
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.