Floating Text
- Ranakastrasz
- Smart Inserter
- Posts: 2167
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Floating Text
Is it possible to make, via script, floating text, similar to that of most item movement events appear?
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Re: Floating Text
Code: Select all
/c game.get_surface(1).create_entity{name="flying-text", position={0,0}, text="Hello world", color={r=0.5,g=1,b=1}}
-
- Long Handed Inserter
- Posts: 91
- Joined: Thu Oct 22, 2015 5:08 am
- Contact:
Re: Floating Text
Error: LuaGameScript doesn't contain key get_surface
Re: Floating Text
Bizz Keryear wrote:Error: LuaGameScript doesn't contain key get_surface
Code: Select all
/c game.surfaces[1].create_entity{name="flying-text", position={0,0}, text="Hello world", color={r=0.5,g=1,b=1}}
Re: Floating Text
Code: Select all
/c game.surfaces[1].create_entity({name="flying-text", position=game.player.position,text="It looks like I am talking",color={r=0.5,g=1,b=1}})
-
- Long Handed Inserter
- Posts: 91
- Joined: Thu Oct 22, 2015 5:08 am
- Contact:
Re: Floating Text
Umm, still according to documentation get_surface should be a thing
Re: Floating Text
Not in 0.13. It's not in the 0.13.0 doc and not in the current (0.13.5) one.Bizz Keryear wrote:Umm, still according to documentation get_surface should be a thing
http://lua-api.factorio.com/0.13.5/LuaGameScript.html
-
- Long Handed Inserter
- Posts: 91
- Joined: Thu Oct 22, 2015 5:08 am
- Contact:
Re: Floating Text
oki... was also relying on wiki as source of information ... obviously a mistakedaniel34 wrote:Not in 0.13. It's not in the 0.13.0 doc and not in the current (0.13.5) one.Bizz Keryear wrote:Umm, still according to documentation get_surface should be a thing
http://lua-api.factorio.com/0.13.5/LuaGameScript.html