Location ping

Place to get help with not working mods / modding interface.
Post Reply
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Location ping

Post by DaveMcW »

Is it possible to generate a location ping, similar to the one created when a player shift-clicks the map with chat open?

PFQNiet
Filter Inserter
Filter Inserter
Posts: 289
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

Re: Location ping

Post by PFQNiet »

You can game.print() (or player.print(), force.print() as appropriate) with:

Code: Select all

game.print("[gps=0,0]")
This basically does the same as the player pinging that location on the map, and the player can click on it in the chat log to open the map to that position.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Location ping

Post by eradicator »

Feel free to add your voice to this request: viewtopic.php?f=28&t=76539
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Modding help”