Stop a Helicopter

Started by Diego^, Jun 17, 2015, 02:06 PM

Previous topic - Next topic

Diego^

Well I created a fuel system, I realized that Vehicle.Kill function is not the same as 0.3, which would stop any vehicle, so I used The function SetHandlingData and could cause the vehicle to stop, the more I realized that the helicopter did not stop, then I would that someone would help me.

 ???
BRL's Developer.

Skirmant

You could try freezing the player

Diego^

Quote from: Skirmant on Jun 17, 2015, 08:35 PMYou could try freezing the player

I've tried, the player can not get out of the vehicle when it frozen. :-\
BRL's Developer.

EK.IceFlake

Try setting handling to:
Maxspeed: 0
Acceleration: 0

Diego^

Does not work, the ideal is that vehicle.Kill() function has the same function as the vehicle.KillEngine() of 0.3
BRL's Developer.

Thijn

Quote from: Diego^ on Jun 18, 2015, 10:50 AMDoes not work, the ideal is that vehicle.Kill() function has the same function as the vehicle.KillEngine() of 0.3
What does it do in 0.4? I haven't tried it myself.

Diego^

Explode the vehicle...
BRL's Developer.

aXXo

#7
Quote from: Diego^ on Jun 18, 2015, 07:01 PMExplode the vehicle...
There you go! The heli stopped :)

Try ejecting the driver and putting him in passenger slot. Not sure what would happen if there is already a passenger.

Shadow

I used vehicle.Speed and set 0 to all attributes iirc
QuotePS:is trash is ur home language??

Diego^

Thank Shadow, your tip helped.
Solved.
BRL's Developer.

EK.IceFlake

Quote from: Thijn on Jun 18, 2015, 03:56 PM
Quote from: Diego^ on Jun 18, 2015, 10:50 AMDoes not work, the ideal is that vehicle.Kill() function has the same function as the vehicle.KillEngine() of 0.3
What does it do in 0.4? I haven't tried it myself.
It is just a short way of
vehicle.Health = 0;
vehicle.Damage = 0;