IsVehicleWindowOpen: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Changed "set" occurences to "get") |
||
Line 2: | Line 2: | ||
{{Client function}} | {{Client function}} | ||
{{Needs Example}} | {{Needs Example}} | ||
{{New feature/item|3.0160|1.6|7405|This function | {{New feature/item|3.0160|1.6|7405|This function gets the vehicle window state.}} | ||
== Syntax == | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool isVehicleWindowOpen ( vehicle theVehicle, int window ) | bool isVehicleWindowOpen ( vehicle theVehicle, int window ) | ||
Line 10: | Line 10: | ||
=== Required arguments === | === Required arguments === | ||
* '''theVehicle:''' The vehicle that you wish to | * '''theVehicle:''' The vehicle that you wish to get the window state. | ||
* '''window:''' An integer representing window. | * '''window:''' An [[integer]] representing a vehicle window. It can be: | ||
** '''0:''' motorbike shield | ** '''0:''' motorbike shield | ||
** '''1:''' rear window | ** '''1:''' rear window | ||
Line 20: | Line 20: | ||
** '''6:''' windshield | ** '''6:''' windshield | ||
== Returns == | |||
This function returns a boolean which represents window open state | This function returns a boolean which represents window open state. | ||
== Example == | == Example == |
Revision as of 10:07, 7 September 2015
Script Example Missing Function IsVehicleWindowOpen needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
This function gets the vehicle window state.
Syntax
bool isVehicleWindowOpen ( vehicle theVehicle, int window )
Required arguments
- theVehicle: The vehicle that you wish to get the window state.
- window: An integer representing a vehicle window. It can be:
- 0: motorbike shield
- 1: rear window
- 2: right front window
- 3: right back window
- 4: left front (driver) window
- 5: left back window
- 6: windshield
Returns
This function returns a boolean which represents window open state.
Example
--TODO
See also
- areVehicleLightsOn
- getHeliBladeCollisionsEnabled
- getHelicopterRotorSpeed
- getVehicleAdjustableProperty
- getVehicleComponentPosition
- getVehicleComponentRotation
- getVehicleComponents
- getVehicleComponentScale
- getVehicleComponentVisible
- getVehicleCurrentGear
- getVehicleDummyPosition
- getVehicleGravity
- getVehicleLandingGearDown
- getVehicleModelDummyDefaultPosition
- getVehicleModelDummyPosition
- getVehicleModelExhaustFumesPosition
- getVehicleModelWheelSize
- getVehicleNitroCount
- getVehicleNitroLevel
- getVehicleWheelFrictionState
- getVehicleWheelScale
- isTrainChainEngine
- isVehicleNitroActivated
- isVehicleNitroRecharging
- isVehicleOnGround
- isVehicleWheelOnGround
- isVehicleWindowOpen
- resetVehicleComponentPosition
- resetVehicleComponentRotation
- resetVehicleComponentScale
- resetVehicleDummyPositions
- setHeliBladeCollisionsEnabled
- setHelicopterRotorSpeed
- setVehicleAdjustableProperty
- setVehicleComponentPosition
- setVehicleComponentRotation
- setVehicleComponentScale
- setVehicleComponentVisible
- setVehicleDummyPosition
- setVehicleGravity
- setVehicleLandingGearDown
- setVehicleModelDummyPosition
- setVehicleModelExhaustFumesPosition
- setVehicleModelWheelSize
- setVehicleNitroActivated
- setVehicleNitroCount
- setVehicleNitroLevel
- setVehicleWheelScale
- setVehicleWheelStates
- setVehicleWindowOpen
- Shared
- addVehicleUpgrade
- attachTrailerToVehicle
- blowVehicle
- createVehicle
- detachTrailerFromVehicle
- fixVehicle
- getOriginalHandling
- getTrainDirection
- getTrainPosition
- getTrainSpeed
- getTrainTrack
- getVehicleColor
- getVehicleCompatibleUpgrades
- getVehicleController
- getVehicleDoorOpenRatio
- getVehicleDoorState
- getVehicleEngineState
- getVehicleHandling
- getVehicleHeadLightColor
- getVehicleLandingGearDown
- getVehicleLightState
- getVehicleMaxPassengers
- getVehicleModelFromName
- getVehicleName
- getVehicleNameFromModel
- getVehicleOccupant
- getVehicleOccupants
- getVehicleOverrideLights
- getVehiclePaintjob
- getVehiclePanelState
- getVehiclePlateText
- getVehicleSirenParams
- getVehicleSirens
- getVehicleSirensOn
- getVehicleTowedByVehicle
- getVehicleTowingVehicle
- getVehicleTurretPosition
- getVehicleType
- getVehicleUpgradeOnSlot
- getVehicleUpgradeSlotName
- getVehicleUpgrades
- getVehicleVariant
- getVehicleWheelStates
- isTrainDerailable
- isTrainDerailed
- isVehicleBlown
- isVehicleDamageProof
- isVehicleFuelTankExplodable
- isVehicleLocked
- isVehicleOnGround
- isVehicleTaxiLightOn
- removeVehicleUpgrade
- setTrainDerailable
- setTrainDerailed
- setTrainDirection
- setTrainPosition
- setTrainSpeed
- setTrainTrack
- setVehicleColor
- setVehicleDamageProof
- setVehicleDoorOpenRatio
- setVehicleDoorState
- setVehicleDoorsUndamageable
- setVehicleEngineState
- setVehicleFuelTankExplodable
- setVehicleHandling
- setVehicleHeadLightColor
- setVehicleLandingGearDown
- setVehicleLightState
- setVehicleLocked
- setVehicleOverrideLights
- setVehiclePaintjob
- setVehiclePanelState
- setVehiclePlateText
- setVehicleSirens
- setVehicleSirensOn
- setVehicleTaxiLightOn
- setVehicleTurretPosition
- setVehicleVariant
- setVehicleWheelStates