+Delta68 Posted May 16, 2019 Share Posted May 16, 2019 Urwigo: I can't figure out how to use undocumented properties eg: b = zoneFinal.CurrentBearing and how do I incorporate my own functions and pass parameters to them? eg var_direction = getDirection(b) If I create a function using the gui, the only available method appears to be 'call'. I can't see how to specify parameters If I paste in the lua code in a run lua code action nothing seems to happen Thanks Quote Link to comment
+Tungstène Posted May 17, 2019 Share Posted May 17, 2019 I don't know. I'm sorry if I look silly answering that but, since you wondered in another thread why nobody replied, I wanted you to know that I care. I bet I'm not the only one. In Earwigo, there is a place where you can type your own code. I believed it was the same with Urwigo but if it was the case you'd find it already,wouldn't you? Quote Link to comment
+Delta68 Posted May 20, 2019 Author Share Posted May 20, 2019 It's possible to type my own code in Urwigo but I can't see how to pass parameters to the functions. If it relies on using global variables it would force pretty poor code style. Both these issues were REALLY EASY to do in the Groundspeak Builder . Yes, the one which everyone says is useless Quote Link to comment
+Tungstène Posted May 20, 2019 Share Posted May 20, 2019 (edited) I probably don't understand your question but the answer is: to pass parameters to a function, write them between parentheses following the function name, separated by commas. Edited May 20, 2019 by Tungstène Forgot one word. Quote Link to comment
+Delta68 Posted May 30, 2019 Author Share Posted May 30, 2019 Yes, that would be the normal way to do things but I just can't get it to work in Urwigo It would help it I actually got an error but no, nothing at all! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.