myonlake Posted November 11, 2011 Share Posted November 11, 2011 (edited) Hello, When I type this shutdown command, it just shut it downs and then restarting it. function rotorsOn() local vehicle = getPedOccupiedVehicle(getLocalPlayer()) setHelicopterRotorSpeed(vehicle, 0.2) setVehicleEngineState(vehicle, true) end addCommandHandler("rotorson", rotorsOn) function rotorsOff() local vehicle = getPedOccupiedVehicle(getLocalPlayer()) setHelicopterRotorSpeed(vehicle, 0) setVehicleEngineState(vehicle, false) end addCommandHandler("rotorsoff", rotorsOff) Edited May 30, 2019 by myonlake Link to comment
Castillo Posted November 11, 2011 Share Posted November 11, 2011 Maybe try to turn off the helicopter engine BEFORE set the rotor's speed? Link to comment
^Dev-PoinT^ Posted November 11, 2011 Share Posted November 11, 2011 Like This function rotorsOn() local vehicle = getPedOccupiedVehicle(getLocalPlayer()) setVehicleEngineState(vehicle, true) setHelicopterRotorSpeed(vehicle, 0.2) end addCommandHandler("rotorson", rotorsOn) function rotorsOff() local vehicle = getPedOccupiedVehicle(getLocalPlayer()) setVehicleEngineState(vehicle, false) setHelicopterRotorSpeed(vehicle, 0) end addCommandHandler("rotorsoff", rotorsOff) Link to comment
myonlake Posted November 11, 2011 Author Share Posted November 11, 2011 Thanks snake once again Like This function rotorsOn() local vehicle = getPedOccupiedVehicle(getLocalPlayer()) setVehicleEngineState(vehicle, true) setHelicopterRotorSpeed(vehicle, 0.2) end addCommandHandler("rotorson", rotorsOn) function rotorsOff() local vehicle = getPedOccupiedVehicle(getLocalPlayer()) setVehicleEngineState(vehicle, false) setHelicopterRotorSpeed(vehicle, 0) end addCommandHandler("rotorsoff", rotorsOff) That wouldn't help a cent. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now