Jump to content

Recommended Posts

Posted

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)?

Posted
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.

  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...