Metall4You Posted January 14, 2022 Report Posted January 14, 2022 Hello i would like to start a wav file after i got the taxi clearance. is there an offset that i can query for the status? I found the following script for the pusback. can I change that with the appropriate offset? i found the following: STATE_TAXI_FOR_TAKEOFF Thank you for your answers function vlc() checkiftrue=1 sound.path("G:\\Sound\\Briefings") sound.play("737_Crew_Taxi.wav") event.cancel("vlc") end function checkPushback() if checkiftrue==0 then event.control(66483,"vlc") end end checkiftrue=0 checkPushback() kind regards Ramon
John Dowson Posted January 17, 2022 Report Posted January 17, 2022 On 1/14/2022 at 8:52 PM, Metall4You said: i got the taxi clearance. is there an offset that i can query for the status? No, sorry, as this is just a message from ATC. There is no 'status' of the aircraft for this. John
Metall4You Posted January 18, 2022 Author Report Posted January 18, 2022 Hi John Many thanks for your Answer. Can I check when the pushback is finished and then wait with a sleep for ca. 10 sec. and then play the wav file? Kind Regards Ramon
John Dowson Posted January 19, 2022 Report Posted January 19, 2022 14 hours ago, Metall4You said: Can I check when the pushback is finished and then wait with a sleep for ca. 10 sec. and then play the wav file? You can try that, using offset 0x31F0. Try logging that offset first to check its holding the correct state for the aircraft you are using. You can start a timer to call a function to play the wav when the offset value changes from 0,1 or 2 to 3 (pushback off). Regards, John
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now