View Single Post
Old 08-31-10, 06:28 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Abd_von_Mumit View Post
As for now I got this:

[AS]
Quick hydrophone check
[CATEGORY]
Search on patrol
[COMMANDS]
Activate_NavMap_Station,0,0,0,0,0,0,1
Set_Time_Compression,128,0,0,0,0,0,1
Set_new_speed,7.5,0,0,0,0,0,1
Set_new_depth,20,0,0,0,0,0,60
All_stop,0,0,0,0,0,0,5
Hydrophone_normal_sweep,0,0,0,0,0,0,120
Report_nearest_sound_contact,0,0,0,0,0,0,1
Surface,0,0,0,0,0,0,60
Set_new_speed,7.5,0,0,0,0,0,1
Loop,-1,0,0,0,0,0,0
Wait,0,0,0,0,0,0,3240
Set_Time_Compression,128,0,0,0,0,0,1
[COMMANDS_END]

Is there any way to add IFs?
The Loop,-1,.... command will cause everything above it to loop indefinitely - the commands below it will never get executed.

I'm adding the ability to declare globals and some conditional testing but it isn't finished yet

What kind of conditional test were you wanting to perform?
TheDarkWraith is offline   Reply With Quote