Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dofile(LockOn_Options.script_path.."devices.lua")
- dofile(LockOn_Options.script_path.."command_defs.lua")
- local VFF = GetSelf();
- local update_rate = 0.05
- make_default_activity(update_rate);
- local sensor_data = get_base_data();
- function post_initialize()
- overdetent = false;
- vff_sound_host = create_sound_host("VFF_SOUND_HOST","3D",0.2,-0.1,0);
- throttle_click = vff_sound_host:create_sound("Aircrafts/F-16C/Cockpit/Throttle_Click1");
- end
- function update()
- local ThrottleValue = get_cockpit_draw_argument_value(755)
- if (ThrottleValue > .75) then
- print_message_to_user("Throttle Working")
- if (overdetent == false) then
- if throttle_click:is_playing() then throttle_click:stop(); end
- throttle_click:play_once();
- overdetent = true;
- end
- else
- if (overdetent == true) then
- if throttle_click:is_playing() then throttle_click:stop(); end
- throttle_click:play_once();
- overdetent = false;
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement