Simutrans-Squirrel-API
Functions
Functions to rename something in the game

Functions

string factory_x::set_name (string)
 
string city_x::set_name (string)
 
string convoy_x::set_name (string)
 
string halt_x::set_name (string)
 
string line_x::set_name (string)
 
string label_x::set_text (string text)
 
string player_x::set_name (string name)
 

Detailed Description

In AI mode, renaming works only if the object is owned by the script's player.

Function Documentation

string player_x::set_name ( string  name)

Sets name of company.

Parameters
namethe new name
string halt_x::set_name ( string  )

Sets station name.

string city_x::set_name ( string  )

Change city name.

string line_x::set_name ( string  )

Sets line name.

string convoy_x::set_name ( string  )

Sets convoy name.

string factory_x::set_name ( string  )

Change name.

string label_x::set_text ( string  text)

Set text of marker.

Parameters
texttext