Mindeufair Posted April 21, 2023 Posted April 21, 2023 Hello DCS team, I'm currently writing a VoiceAttack plugin that changes the current profile based on the aircraft being flown in DCS. To do so, I wrote a lua hook (in Saved Games/DCS/Scripts/Hooks). I successfully retrieved and sent the current airplane to my plugin, however it seems impossible to properly retrieve the seat the player is in, in a way that works both in singleplayer and multiplayer for at least every multiseat aircraft. I tried GetDevice(0):get_current_seat() but it isn't defined for the AH64D for instance. So I would like to know if it were possible for you to add such a getter in the hook API. I think it would also be very practical for some mainstream mods, such as SRS which tries to get the seat as I do, but doesn't achieve this in every case. If, however, there is already a way to do what I want, I would be glad to read it, but I don't think that is the case. Thank you for your time,
Recommended Posts