Topic: lua: Get click position?

kaputtnik
Avatar
Topic Opener
Joined: 2013-02-18, 20:48 UTC+1.0
Posts: 2683
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2018-01-12, 21:25 UTC+1.0

Is it possible to obtain on which field/node a player has clicked?

Say i want to determine if an immovable stand on this field/node.

I can check which 'kind' of field_action window is open, but this gives me no information about the field itself. Especially for non building fields.


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56 UTC+2.0
Posts: 3317
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-01-17, 15:01 UTC+1.0

We don't have a Lua function for that yet - please open a bug report.


Busy indexing nil values

Top Quote
kaputtnik
Avatar
Topic Opener
Joined: 2013-02-18, 20:48 UTC+1.0
Posts: 2683
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2021-04-02, 19:31 UTC+2.0

Can't find any bug report so i don't know if i have written one face-grin.png

bug report with more ideas


Top Quote