A command to change the name of specific (named or random) divisions, and especially a command to remove a division's name and let the game pick a new name from the nation's names list
type = rename_unit [country = tag] which = [unit id type/named unit/land/naval/air] where = [unit id id] [value = new unit name/ignore field for one from the csv file] data = [a boolean for the behaviour if there are more than one unit with the name - change them all or just the first one]
Land, unit and air for all units of that type
A variable (eg -4) for "the last unit created via command" for the various commands relating to units, like locking them
type = rename_unit [country = tag] which = [unit id type/named unit/land/naval/air] where = [unit id id] [value = new unit name/ignore field for one from the csv file] data = [a boolean for the behaviour if there are more than one unit with the name - change them all or just the first one]
Land, unit and air for all units of that type
A variable (eg -4) for "the last unit created via command" for the various commands relating to units, like locking them
Last edited: