From 816f36b97983252f2315b30828a6c94ea8f7fc93 Mon Sep 17 00:00:00 2001 From: PreLeyZero Date: Sun, 10 Apr 2022 15:35:24 +0200 Subject: [PATCH] added text message when beacon placed --- scripts/electronic/el_ki_script.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/electronic/el_ki_script.lua b/scripts/electronic/el_ki_script.lua index c309f72..0742bc7 100644 --- a/scripts/electronic/el_ki_script.lua +++ b/scripts/electronic/el_ki_script.lua @@ -177,6 +177,9 @@ function make_ki_beacon(entity) register_ki_beacon(entity) el_ki_single_beacon_update(entity.unit_number) gui.update_main() + + make_beacon_text(entity) + --el_ki_beacon_make_text(entity) end function destroy_ki_core(entity,player_index,robot) @@ -599,6 +602,11 @@ end --================================================================================= --util --================================================================================= + +function make_beacon_text(entity) + entity.surface.create_entity({name="flying-text", position=entity.position, text="Channel: "..global.ki.beacon[entity.unit_number].channel, color={r=1, g=1, b=1}}) +end + function remove_request_ghost(entity) if (entity.ghost_name == "el_ki_beacon_entity") or (entity.ghost_name == "fi_ki_beacon_entity") or (entity.ghost_name == "fu_ki_beacon_entity") then if entity.item_requests then