Drive vehicle on its own
#1

Hi,

is it possible to simulate a keypress like for example 'W'? I wanted to programm a system, that when you type /autodrive or something like that, your vehicle drives on its on and you have your hands free to communicate in IC.

Basically a similiar system to /walk but just for vehicles.


Regards
Reply
#2

I have idea to change vehicle's velocity, why not try.
Reply
#3

yeah, you have to get player's vehicle velocity and keep this velocity for a time.

PHP код:
GetVehicleVelocity(vehid,X,Y,Z); // to get vehicle's velocity
SetVehicleVelocity(vehid,X,Y,Z); // to set velocity (it must be same to keep vehicle's current speed) 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)