01-23-11, 08:37 AM
|
#33
|
Navy Seal 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28
|
This is the sweep cammand from automation:-
Quote:
; Sweep_Scope,x,y,a,b,c,0,t - sweep the scope from a start of y degrees to an end of a degrees. Time to sweep from y to a determined by b. Next command will be issued after time t (time t doesn't start until sweeping complete). x = the scope station number (0=attack, 1=obs, 2=UZO). c is a decimal number representing the bits set for the following options (use windows calc to input binary number then convert to decimal):
; this function will wait for scope station to be visible (will wait for 15 seconds and if not visible then a skip command will be issued)
; bit 0 = lock the contact on contact spotted (if bit 2,3,4, or 5 isn't set then contact will be immediately unlocked)
; bit 1 = set current heading for contact on contact spotted
; bit 2 = stop sweep on contact spotted
; bit 3 = stop sweep and follow target on contact spotted
; bit 4 = pause sweep on contact spotted
; bit 5 = pause sweep and follow target on contact spotted
; bit 6 = pause game (and either also pause sweep) on contact spotted
; bit 7 = abort script on contact spotted
; bit 8 = inform user that contact was detected
|
If this could be used without having to be at the station - it could be used to continuously to fix the "my watch crew are blind" problem.
Also if this could be added :-
Quote:
;Operation|a|b|c|d|e|f - performs operation, a, on b and c. d, if used, is a valid Label command or variable/pointer to a label command. a can be a variable or pointer (needs to be enclosed in <>). b, c and d, if used, can be variables or pointers and needs to be enclosed in <<>> or specify None.
; if b is None then operand 1 is the value retrieved from g_TR1 else operand 1 is the value retrieved for b (if value retrieved is a pointer it will be dereferenced)
; if c is a literal value (i.e. 5 or 7.9) then it must have a type declarer following it. Specify u for unsigned integer, i for integer, f for float, and nothing for strings
; if a is + or - then e defines the dial type: 0 = not a dial, 1 = a dial whose values are -180 to 180, 2 = a dial whose values are 0 to 360
|
Then all sorts of things could be done.
__________________
Trevally Mods for SH5
|
|
|