Ground of Aces Scripting API
Public Member Functions | List of all members
AirplaneScriptApi Class Reference

This class is available under a global airplane_api variable. More...

Public Member Functions

string GetPilot (uint airplaneId)
 Get pilot assigned to an airplane More...
 
float GetAirplaneHealth (uint airplaneId)
 Get the health value of an airplane More...
 
float GetAirplaneIntegrity (uint airplaneId)
 Get the integrity value of an airplane More...
 
uint GetAirplaneParkingLot (uint airplaneId)
 Get the parking lot assigned to an airplane More...
 

Detailed Description

This class is available under a global airplane_api variable.

Member Function Documentation

◆ GetAirplaneHealth()

float GetAirplaneHealth ( uint  airplaneId)
inline

Get the health value of an airplane

Parameters
airplaneIdID of the airplane
Returns
Returns the health value of the airplane

◆ GetAirplaneIntegrity()

float GetAirplaneIntegrity ( uint  airplaneId)
inline

Get the integrity value of an airplane

Parameters
airplaneIdID of the airplane
Returns
Returns the integrity value of an airplane

◆ GetAirplaneParkingLot()

uint GetAirplaneParkingLot ( uint  airplaneId)
inline

Get the parking lot assigned to an airplane

Parameters
airplaneIdID of the airplane
Returns
Entity ID of the parking lot
Exceptions
ExceptionNo parking lot found

◆ GetPilot()

string GetPilot ( uint  airplaneId)
inline

Get pilot assigned to an airplane

Parameters
airplaneIdID of the airplane
Returns
ID of the pilot assigned to the airplane