dek Posted September 12, 2024 Posted September 12, 2024 Hi all. I am trying to get players plane name and seat. I managed to get plane name by using LoGetSelfData() but I can't get the seat. Does anyone know how to find out in which seat is the player (on the client side, not the server)?
cfrag Posted September 13, 2024 Posted September 13, 2024 7 hours ago, dek said: Does anyone know how to find out in which seat is the player (on the client side, not the server)? In multiplayer, clients do not support the concept of "I", they do not know who they are. The closest that you can get is via missionCommand and install a callback when the player invokes a function. This is currently only implemented on group level, so at this point, a client can't know who they are, and in multicrew they can't know which seat they occupy. That being said, LoGetSelfData() is part of the export package that runs outside the mission itself, and may provide that info and I am not familiar with it. So if you want a mission script to know who "I" (the player) is, that is currently not possible. It might be possible outside of the mission, and it is definitely possible on the server. 1
dek Posted September 13, 2024 Author Posted September 13, 2024 Thank you for replying. Unfortunately LoGetSelfData() does not provide that information.
Recommended Posts