Jump to content
The simFlight Network Forums

Lua Script for taxi clearance / STATE_TAXI_FOR_TAKEOFF


Recommended Posts

Posted

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

Posted
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

Posted

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

 

Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.