Advertisement
PhunkeyMonkey

Starbase Rangefinder Alarm

Aug 2nd, 2021 (edited)
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. //Alarm Version (dont copy this in, only the 2 lines below)
  2. RS = :RD1+:RD2+:RD3
  3. if :AO==1 and RS<300 then :sfx=1 else :sfx=0 end goto1
  4.  
  5. //SlamTheBrakes (dont copy this in, only the 2 lines below)
  6. RS = :RD1+:RD2+:RD3
  7. if :AO==1 and RS<300 then :sfx=1 :fcw=0 :fcb=100 else :sfx=0 end goto1
  8.  
  9. //Edit: Version with timed alarm, check I against higher values for longer beep times (each count up is ~2ms)
  10. RS = :RD1+:RD2+:RD3
  11. if :AO==1 and RS<300 then :fcw=0 :fcb=100 goto3 else end goto1
  12. i=0
  13. if i<30 then ++i :sfx=1 goto4 else goto1 end
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement