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

Functions

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

Detailed Description

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

Function Documentation

◆ set_name() [1/6]

void player_x::set_name ( string  name)

Sets name of company.

Parameters
namethe new name

◆ set_name() [2/6]

void halt_x::set_name ( string  )

Sets station name.

◆ set_name() [3/6]

void city_x::set_name ( string  )

Change city name.

◆ set_name() [4/6]

void line_x::set_name ( string  )

Sets line name.

◆ set_name() [5/6]

void convoy_x::set_name ( string  )

Sets convoy name.

◆ set_name() [6/6]

void factory_x::set_name ( string  )

Change name.

◆ set_text()

void label_x::set_text ( string  text)

Set text of marker.

Parameters
texttext