Currently Online

Latest Posts

Topic: lua: Get click position?

kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 2027
Ranking
One Elder of Players
Location: Germany
Posted at: 2018-01-12, 21:25

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
Posts: 3326
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-01-17, 15:01

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


Busy indexing nil values

Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 2027
Ranking
One Elder of Players
Location: Germany
Posted at: 2021-04-02, 19:31

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