News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

[SOLVED] Get position in "schedule_x"

Started by Yona-TYT, May 09, 2017, 02:40:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

I need something like "schedule.entries[nr].pos" to be able to get the exact position of tile selected.


Dwachs

schedule.entries[nr] is inherited from coordinates. You can work with it as if it were a 3d coordinate. E.g., it has member variables x,y,z as in schedule.entries[nr].x.
Parsley, sage, rosemary, and maggikraut.

Yona-TYT

Thank you, I did not know that.  :)