SetHeliBladeCollisionsEnabled: Difference between revisions
Jump to navigation
Jump to search
m (→Oops ...) |
|||
Line 9: | Line 9: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''theVehicle:''' The | *'''theVehicle:''' The helicopter that will have the blades collisions set. | ||
*'''collisions:''' The state of the helicopter blades collisions. | *'''collisions:''' The state of the helicopter blades collisions. | ||
Revision as of 13:08, 13 September 2013
This function changes the state of the helicopter blades collisions on the specified vehicle.
Syntax
bool setHeliBladeCollisionsEnabled ( vehicle theVehicle, bool collisions )
Required Arguments
- theVehicle: The helicopter that will have the blades collisions set.
- collisions: The state of the helicopter blades collisions.
Returns
Returns true if the collisions are set for the specified vehicle, false if the collisions can't be set for the specified vehicle, if the vehicle is not a helicopter or if invalid arguments are specified.
Example
Click to collapse [-]
ServerThis example disables blades collisions when a player enters a helicopter as a driver.
function onVehicleEnter ( thePlayer, seat, jacked ) --If the player entered a helicopter if ( getVehicleType ( source ) == "Helicopter" ) then --If the player entered as a driver if ( seat == 0 ) then -- Turn off collisions setHeliBladeCollisionsEnabled ( source, false ) end end end addEventHandler ( "onVehicleEnter", root, onVehicleEnter )
See Also
- 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