Training scripts and set cursor for draw functions
-
re: BMS Training Scripts
I’m trying to draw circles around buttons, dials and switches as part of an interactive training script, but I can’t seem to place the cursor.
I have tried SetCursor3D, SetCursorCallback, etc., and I have tried the 2D and 3d views, but the draw functions seem to use the position set by SetCursor and MoveCursor.
As these functions exist they must be useable?
Example:
SetPanTilt -1.5 0.9 // works
SetCursor3D 0 0.5 // works as long as I don’t use z coordinate, but x and y don’t seem to do anything
Oval 999 0.05 // draws at setcursor position
Print 999 “CURSOR HERE” // draws at setcursor positionAny help would be appreciated.
-
Hi,
you need either
Hilite3DButton <time>< command> <integer –=“” optional=“”>(Draws just circles)or
WaitHilite3DButton <time>< command> <integer –=“” optional=“”>(waits additionally for user input and returns true or false)</integer></time></integer></time>
-
Thanks. That looks like being a great help.
What does the integer do?
-
A couple of cockpit functions have the one and same callback assigned multiple times.
Look e.g. at the ejection handle. You have three hotspots in the cockpit, thus the callback is present three times.
With the integer you can select one of them (in this case 1, 2 or 3) to specify the correct hotspot.