Jump to content

Urwigo: How do I use undocumented properties and pass parameters to functions?


Delta68

Recommended Posts

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

Link to comment

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?

Link to comment

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 :(

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...