wesnoth.get_viewing_side()

Discussion of Lua and LuaWML support, development, and ideas.

Moderators: Forum Moderators, Developers

Post Reply
enclave
Posts: 936
Joined: December 15th, 2007, 8:52 am

wesnoth.get_viewing_side()

Post by enclave »

Hi, could anyone enlighten how wesnoth.get_viewing_side() could be used? (wesnoth 1.12)
it always says that im trying to call nil value or something similar.. I tried ipairs, array, and many many more... nothing seem to work, just error all the time. Tiny example of how to extract side from it??
Thanks in advance!

PS. ah well.. i think it only works in 1.13? But wiki doesnt specify that.. could wiki be corrected if so?


enclave
Posts: 936
Joined: December 15th, 2007, 8:52 am

Re: wesnoth.get_viewing_side()

Post by enclave »

hmm thats interesting...
are they all on 1.14 or some of them work 1.12 too? undocumented ones..

User avatar
Ravana
Forum Moderator
Posts: 2370
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: wesnoth.get_viewing_side()

Post by Ravana »

As you can see from first link that specific one is present in master 1.14.0 1.13.14 1.13.13 1.13.12 1.13.11 1.13.10 1.13.10-retag 1.13.9 1.13.8 1.13.7 1.13.6 1.13.5 1.13.4 1.13.3 1.13.2 1.13.1.

enclave
Posts: 936
Joined: December 15th, 2007, 8:52 am

Re: wesnoth.get_viewing_side()

Post by enclave »

Thanks.. i didnt notice them sorry :)

Post Reply