Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

How to detect an incoming handoff.


Kieran Samuel Cross
 Share

Recommended Posts

Kieran Samuel Cross
Posted
Posted

As the subject suggests, how would I go about detecting an incoming handoff?

 

Is there a simple event void I can utilize, or maybe something a little more complex that I haven't thought of? I thought about using the OnTimer( int Counter ) and checking for a outstanding handoff, but I'm thinking there must be an easier or better way of doing it?

Kind Regards,

Kieran Cross,

 

28.png

Link to comment
Share on other sites

Oliver Gruetzmann
Posted
Posted

I don't think there is any other way than to iterate over all FlightPlans and check for

GetState() ==  FLIGHT_PLAN_STATE_TRANSFER_TO_ME_INITIATED

Link to comment
Share on other sites

 Share