setHeliBladeCollisionsEnabled | Multi Theft Auto: Wiki Skip to content

setHeliBladeCollisionsEnabled

Client-side
Server-side
Shared

Pair: getHeliBladeCollisionsEnabled

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function changes the state of the helicopter blades collisions on the specified vehicle.

Syntax

setHeliBladeCollisionsEnabled ( )

Code Examples

client

This 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 ( "onClientVehicleEnter", root, onVehicleEnter )

See Also

Vehicle Functions