News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

[Script Tools] Players can edit other players' text labels

Started by Yona-TYT, December 26, 2024, 10:14:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT


In theory it should not be possible for a non-owning player to modify the text labels.

Put this example in a script tool:

local list = world.get_label_list()
// list is now of type label_list_x
foreach(label in list) {
label.set_text("If I'm not the owner this shouldn't change :P.")
}

prissi

This is not allowed in network games, only for local games and is intended that way.