szielins Posted September 2, 2019 Share Posted September 2, 2019 Greetings! I'm trying to add a UI element to display an icon or some text or something if the player has toggled off the flight assist systems. I can see how to get some state data out; for instance, the code to MoveUI's PowerSystems.lua has local ES = ReadOnlyEnergySystem(player.craftIndex) So I'm confident this sort of thing is feasible. But for the life of me I can't find anywhere to dig out anything that'll contain whether or not the player has toggled off the flight assist systems. Indeed, the only references I can see to it in the API are down in the enums--one in ComponentType and one in ControlAction. I'd kinda expect Player() to return it somehow, as Player [Client] does yield some state information: property PlayerStateType state Which will answer which major mode the player is in (per the PlayerStateType enums)--but not what I'm looking for. Am I just missing it? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now