SetAircraftMaxHeight: Difference between revisions
Jump to navigation
Jump to search
m (Fixed spelling error and added height limit info.) |
m (Removing 9001 limitation from documentation) |
||
Line 9: | Line 9: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''Height''' The height you want aircraft to be able to go | *'''Height''' The height you want aircraft to be able to go. | ||
===Returns=== | ===Returns=== | ||
Line 21: | Line 21: | ||
local height = tonumber ( ve1 ) | local height = tonumber ( ve1 ) | ||
if height then | if height then | ||
if height | if height > 0 then | ||
local wert = setAircraftMaxHeight ( height ) | local wert = setAircraftMaxHeight ( height ) | ||
if wert == true then | if wert == true then |
Revision as of 10:14, 29 June 2011
This function changes the maximum flying height of aircraft.
Syntax
bool setAircraftMaxHeight ( float Height )
Required Arguments
- Height The height you want aircraft to be able to go.
Returns
Returns true if successful, false otherwise.
Example
Click to collapse [-]
ClientThis example shows you a command to set your maximum aircraft height.
function setAircraftHeight ( command, ve1 ) local height = tonumber ( ve1 ) if height then if height > 0 then local wert = setAircraftMaxHeight ( height ) if wert == true then outputChatBox ( "Aircraft height set!", 0, 200, 0 ) else outputChatBox ( "Error to set Aircraft height!", 255, 0, 0 ) end else outputChatBox ( "Maximum value is 9001", 255, 0, 0 ) end else outputChatBox ( "Error to set Aircraft height!", 255, 0, 0 ) end end addCommandHandler ( "aircraft", setAircraftHeight )
See Also
- createSWATRope
- getBirdsEnabled
- getCoronaReflectionsEnabled
- getGarageBoundingBox
- getGaragePosition
- getGarageSize
- getGroundPosition
- getInteriorFurnitureEnabled
- getNearClipDistance
- getPedsLODDistance
- getRoofPosition
- getScreenFromWorldPosition
- getVehiclesLODDistance
- getWorldFromScreenPosition
- isAmbientSoundEnabled
- isLineOfSightClear
- isWorldSoundEnabled
- processLineOfSight
- resetAmbientSounds
- resetBlurLevel
- resetColorFilter
- resetCoronaReflectionsEnabled
- resetNearClipDistance
- resetPedsLODDistance
- resetVehiclesLODDistance
- resetWorldSounds
- setAmbientSoundEnabled
- setBirdsEnabled
- setColorFilter
- setCoronaReflectionsEnabled
- setInteriorFurnitureEnabled
- setInteriorSoundsEnabled
- setNearClipDistance
- setPedsLODDistance
- setVehiclesLODDistance
- setWorldSoundEnabled
- testLineAgainstWater
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight
- setPlayerBlurLevel