Quote:
Originally Posted by Trevally.
I am going through the one I had written for a fast 90 attack. This is allowing me to use some operations and call points.
Between reading the "tutorial notes" and your "how_to_use_speed_finder" I am getting most of it. Wiki is helping too
What I cant find is this:-
Operation|mov|<<range_min>>|600.0f|0|0|0
Operation|mov|<<range_max>>|2600.0f|0|0|0
CheckGUIDialValueInRange|SOL_RANGE|<range_min>|<ra nge_max>|None|0|0
I want to use <<heading_min>> and <<heading_max>> but not sure how to do it. Im guessing it needs to be in "GUIDialValue" and im not sure if it is.
|
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.