GetAircraftMaxHeight

From Multi Theft Auto: Wiki
Revision as of 13:11, 9 August 2011 by Arran Fortuna (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function gets the maximum height at which aircraft can fly without their engines turning off.

Syntax

float getAircraftMaxHeight ( )

Returns

Returns a float containing the max aircraft height.

Example

Click to collapse [-]
Client

This example returns the max aircraft height to a player if they use the command 'aircraftmaxheight'.

function commandGetAircraftMaxHeight()
   local height = getAircraftMaxHeight() or "N/A"
   outputChatBox("Aircraft max height: "..height, 0, 255, 0)
end
addCommandHandler("aircraftmaxheight", commandGetAircraftMaxHeight)

See Also