Get visible area

Place to get help with not working mods / modding interface.
Post Reply
danielbrauer
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu May 18, 2017 2:22 pm
Contact:

Get visible area

Post by danielbrauer »

Is it possible to get the area of the map being viewed by a player? I looked through the API but couldn't find anything that seems like it does what I want.

User avatar
mrudat
Fast Inserter
Fast Inserter
Posts: 229
Joined: Fri Feb 16, 2018 5:21 am
Contact:

Re: Get visible area

Post by mrudat »

no, unfortunately. You can approximate it by tracking which entity the player has selected, but that only works when zoomed over an area with lots of entities.

Post Reply

Return to “Modding help”