![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
12-01-10, 12:03 PM
|
#1 | |
|
Navy Seal
![]() |
Quote:
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 |
|
|
|
12-01-10, 12:13 PM
|
#2 | |
|
Black Magic
![]() |
Quote:
Operation|mov|<<gyroangle_min>>|358.0f|0|0|0 Operation|mov|<<gyroangle_max>>|2.0f|0|0|0 this will look for a 0 gyro angle with +- 2 degrees spread. If you want to tighten the spread use 359.0f and 1.0f for a +- 1 degree spread or to go even tighter use 359.5f and 0.5f for a +- 0.5 degree spread. the f is required on the end of the numbers to signify they are a float value (a value with a decimal part) CheckGUIDialValueInRange|SOL_GYROANGLE|<gyroangle_ min>|<gyroangle_max>|None|0|0 The result of this check will be stored in g_TR1 since you have None as the 4th parameter.
|
|
|
|
12-01-10, 12:28 PM
|
#3 |
|
Navy Seal
![]() |
Nice one. Thanks
|
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
