SHARE
TWEET

Untitled

a guest Oct 18th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dofile(LockOn_Options.script_path.."devices.lua")
  2. dofile(LockOn_Options.script_path.."command_defs.lua")
  3.  
  4. local VFF = GetSelf();
  5.  
  6. local update_rate = 0.05
  7. make_default_activity(update_rate);
  8. local sensor_data = get_base_data();
  9.  
  10. function post_initialize()
  11.     overdetent = false;
  12.    
  13.     vff_sound_host          = create_sound_host("VFF_SOUND_HOST","3D",0.2,-0.1,0);
  14.     throttle_click          = vff_sound_host:create_sound("Aircrafts/F-16C/Cockpit/Throttle_Click1");
  15.  
  16. end
  17.  
  18. function update()
  19.  
  20.     local ThrottleValue = get_cockpit_draw_argument_value(755)
  21.  
  22.     if (ThrottleValue > .75) then
  23.         print_message_to_user("Throttle Working")
  24.         if (overdetent == false) then
  25.         if throttle_click:is_playing() then throttle_click:stop(); end
  26.         throttle_click:play_once();
  27.         overdetent = true;
  28.         end
  29.     else
  30.         if (overdetent == true) then
  31.             if throttle_click:is_playing() then throttle_click:stop(); end
  32.             throttle_click:play_once();
  33.             overdetent = false;
  34.         end
  35.     end
  36.  
  37. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top