optional attribute for flying-text to anchor it to another entity
Posted: Mon Nov 12, 2018 7:38 pm
with anchor being the entity
possible version:
or to better differentiate it from the normal variant:
So, if you do that to a rolling stock or any other moving entity the text will follow it around.
Also nice to have attributes would beand (0=never die) so you do not have to tinker with the datastage for such simple things.
possible version:
Code: Select all
anchor.surface.create_entity{name = "flying-text", anchor=anchor, position = {0,0.5}, text = text, color = {r=1,g=0,b=0}}
Code: Select all
anchor.surface.create_entity{name = "flying-text", anchor=anchor, offset = {0,0.5}, text = text, color = {r=1,g=0,b=0}}
Also nice to have attributes would be
Code: Select all
speed
Code: Select all
ttl