RU/getHeliBladeCollisionsEnabled
Jump to navigation
Jump to search
Эта функция получает состояние возможности колизий вертолетных лопастей конкретной машины.
Синтаксис
bool getHeliBladeCollisionsEnabled ( vehicle theVehicle )
Синтаксис ООП Помогите! Я не понимаю, что это!
- Метод: vehicle:areHeliBladeCollisionsEnabled(...)
- Переменная: .heliBladeCollisionsEnabled
- Парная функция: setHeliBladeCollisionsEnabled
Обязательные аргументы
- theVehicle: проверяемая машина.
Возвращает
Возвращает true если колизии разрешены для конкретной машины, false если колизии не разрешены для конкретной машины, она не является вертолетом или даны неправильные аргументы.
Примеры
Click to collapse [-]
ClientЭтот пример показывает состояние колизий лопастей
function onVehicleEnter ( seat, jacked ) --If the player entered a helicopter if ( getVehicleType ( source ) == "Helicopter" ) then local state = getHeliBladeCollisionsEnabled(source ) outputChatBox("Helicopter blades collisions are turned ".. (state and "on" or "off") ) end end addEventHandler ( "onClientVehicleEnter", localPlayer, onVehicleEnter )
Смотрите также
- addVehicleUpgrade
- attachTrailerToVehicle
- RU/blowVehicle
- createVehicle
- detachTrailerFromVehicle
- RU/fixVehicle
- RU/getHeliBladeCollisionsEnabled
- RU/getHelicopterRotorSpeed
- RU/getOriginalHandling
- getTrainDirection
- getTrainPosition
- getTrainSpeed
- getTrainTrack
- getVehicleAdjustableProperty
- RU/getVehicleColor
- getVehicleCompatibleUpgrades
- getVehicleComponents
- getVehicleComponentPosition
- getVehicleComponentRotation
- getVehicleComponentVisible
- RU/getVehicleController
- getVehicleDoorOpenRatio
- getVehicleDoorState
- getVehicleEngineState
- getVehicleGravity
- RU/getVehicleHandling
- getVehicleHeadLightColor
- getVehicleLandingGearDown
- getVehicleLightState
- RU/getVehicleMaxPassengers
- RU/getVehicleModelFromName
- RU/getVehicleName
- RU/getVehicleNameFromModel
- getVehicleNitroCount
- getVehicleNitroLevel
- RU/getVehicleOccupant
- RU/getVehicleOccupants
- getVehicleCurrentGear
- getVehicleOverrideLights
- getVehiclePaintjob
- getVehiclePanelState
- getVehiclePlateText
- getVehicleSirens
- getVehicleSirensOn
- getVehicleSirenParams
- getVehicleTowedByVehicle
- getVehicleTowingVehicle
- getVehicleTurnVelocity
- getVehicleTurretPosition
- getVehicleType
- getVehicleUpgradeOnSlot
- getVehicleUpgrades
- getVehicleUpgradeSlotName
- getVehicleVariant
- getVehicleWheelStates
- isTrainChainEngine
- isTrainDerailable
- isTrainDerailed
- isVehicleBlown
- isVehicleDamageProof
- isVehicleFuelTankExplodable
- isVehicleLocked
- isVehicleNitroRecharging
- isVehicleNitroActivated
- isVehicleOnGround
- isVehicleTaxiLightOn
- isVehicleWindowOpen
- removeVehicleUpgrade
- resetVehicleComponentPosition
- resetVehicleComponentRotation
- setHeliBladeCollisionsEnabled
- setHelicopterRotorSpeed
- setVehicleAdjustableProperty
- setVehicleColor
- setVehicleComponentPosition
- setVehicleComponentRotation
- setVehicleComponentVisible
- setVehicleDamageProof
- setVehicleDirtLevel
- setVehicleDoorOpenRatio
- setVehicleDoorState
- setVehicleDoorsUndamageable
- setVehicleEngineState
- setVehicleFuelTankExplodable
- setVehicleGravity
- setVehicleHeadLightColor
- setVehicleLandingGearDown
- setVehicleLightState
- setVehicleLocked
- setVehicleNitroActivated
- setVehicleNitroCount
- setVehicleNitroLevel
- setVehicleOverrideLights
- setVehiclePaintjob
- setVehiclePanelState
- setVehiclePlateText
- setVehicleSirens
- setVehicleSirensOn
- setVehicleTurretPosition
- setVehicleTaxiLightOn
- setVehicleTurnVelocity
- setVehicleWheelStates
- setVehicleWindowOpen
- setTrainDerailable
- setTrainDerailed
- setTrainDirection
- setTrainPosition
- setTrainSpeed