March 28, 2024, 10:54:05

Author Topic: Renaming ships from a .rules file  (Read 6478 times)

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Renaming ships from a .rules file
« 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.

Offline The Old Dragon

  • Ensign
  • ***
  • Posts: 362
  • Karma: 6
    • View Profile
    • http://
Re: Renaming ships from a .rules file
« Reply #1 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.
Better to look the fool by asking, then prove them right with ignorance.