Setting Speed Question
#1

Is it possible to make a playerid thats driving stop, as in their car applies the brakes? I need this for a tutorial checkpoint, I want when they land on the tut checkpoint their vehicle stops (so it doesn't keep moving). Anyone know how to do this?

Thanks: jakejohnsonusa
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=187229
Reply
#3

I am not asking for anything made. I am asking if it's possible... Anyone know?
Reply
#4

Using SetPlayerVelocity(playerid, 0, 0, 0);
Reply
#5

So this will make their car stop also?
Reply
#6

Oh, right.
pawn Код:
if(IsPlayerInAnyVehicle(playerid)) SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 0.0);
Reply
#7

Or TogglePlayerControllable when they enter a checkpoint. Then reset it on a timer or command or whatever your tutorial includes. With the SetVehicleVelocity method they can just keep driving after you stop them.
Reply
#8

Quote:
Originally Posted by zDevon
Посмотреть сообщение
Or TogglePlayerControllable when they enter a checkpoint. Then reset it on a timer or command or whatever your tutorial includes. With the SetVehicleVelocity method they can just keep driving after you stop them.
Quote:

I want when they land on the tut checkpoint their vehicle stops (so it doesn't keep moving).

Using TogglePlayerControllable(playerid, 0); , this would prevent them from moving at all, the car wouldn't apply any brakes and it would be a sudden movement, which is non-realistic and IMO annoying.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)