Flying Car
#1

Good evening.

I just want to know if it was possible to create a flying car, as in the solo play (the code).

I also know how to, thanks to an order, if possible, increase the speed of a vehicle (preferably a flying machine, so I could move faster. Or a flying car).

Thank you!
Reply
#2

You can change a vehicle speed with SetVehicleVelocity function.
It's possible to make a flying car: you need a timer which will perform an operations (also using SetVehicleVelocity) depending on current keys that player is holding.
Reply
#3

Use a object + move object acording to the keys you press + Move the object rot according to the mouse position.
Reply
#4

I do not understand how works SetVehicleVelocity...
Reply
#5

Use Sa-mp wiki
Reply
#6

https://sampwiki.blast.hk/wiki/SetVehicleVelocity

down below there are others like

setplayervelocity, just take a look at it.
Reply
#7

Yes, but if I do

Код:
new Float:x, Float:y, Float:z;
GetVehiclePos(mycarid, x, y, z);
SetVehicleVelocity(mycarid, x, y, z + 50);
I've a big bug...
Reply
#8

You don't need to get vehicle position and then set its velocity. Just set the vehicle velocity as you want. Use this:
https://sampwiki.blast.hk/wiki/SetVehicleVelocity
Reply
#9

Quote:
Originally Posted by Urefeu
Посмотреть сообщение
Yes, but if I do

Код:
new Float:x, Float:y, Float:z;
GetVehiclePos(mycarid, x, y, z);
SetVehicleVelocity(mycarid, x, y, z + 50);
I've a big bug...
If you want to increase a current speed of the vehicle, then use GetVehicleVelocity before using SetVehicleVelocity.
Like:
pawn Код:
new Float:x, Float:y, Float:z;
GetVehicleVelocity(mycarid, x, y, z);
SetVehicleVelocity(mycarid, x, y, z + 50);    // Will increase velocity in Z direction by 50
Reply
#10

I managed, but it's still difficult to fully reproduce the effects of an aircraft.

Is there a FS already approaching what I want?

Or simply a way to move very quickly, except for teleportation?

thank you
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)