Quote:
Originally Posted by TheDarkWraith
these two commands:
Operation|mov|<<range_min>>|600.0f|0|0|0
Operation|mov|<<range_max>>|2600.0f|0|0|0
create two global variables named range_min and range_max. The << >> mean to use the variable name itself and not to dereference it (get it's value) - required for mov operations. range_min has the value 600.0 (f meaning a float value) stored (mov) into it. range_max has the value 2600.0 (f meaning a float value) stored (mov) into it. The next command:
CheckGUIDialValueInRange|SOL_RANGE|<range_min>|<ra nge_max>|None|0|0
the < > mean dereference (or get the variable's/pointer's vaue). So what the command is doing is getting the value of range_min and range_max and passing them to the CheckGUIDialValueInRange. That command is going to look up the SOL_RANGE dial's value and ensure it's within value of range_min and value of range_max. The None means I want the result of that range check stored in g_TR1 (it will store True or False in it). The None could be a variable name if you want to store the result in one of your variables/pointers.
So to do what you're wanting would be:
Operation|mov|<<heading_min>>|some_valuef|0|0|0
Operation|mov|<<heading_max>>|some_valuef|0|0|0
I just noticed that you cannot get heading from the GUI dials. I'll have to include that. I'll code it in and send you revised files  But after I code it this is how you'll be able to check heading in range:
CheckGUIDialValueInRange|Current_Heading|<heading_ min>|<heading_max>|None or your variable|0|0
I'll send you the single mission for the speed finder tutorial also.
|
Thanks TDW
Could I trouble you with one more, "gyroangle". This one should be in the GUI dials.
Would this work if I wanted someone to have "zero" gyroangle:-
Operation|mov|<<gyroangle_min>>|-350|0|0|0 (not sure if i need the "-")
Operation|mov|<<gyroangle_max>>|10|0|0|0
CheckGUIDialValueInRange|GyroAngle|<gyroangle_min> |<gyroangle_max>|None|0|0