Liberty Unleashed

Scripting => Script Help => Topic started by: Ahmed Abouelnas on February 26, 2013, 12:00:20 pm

Title: scripting
Post by: Ahmed Abouelnas on February 26, 2013, 12:00:20 pm
how to make my car stop by clicking the bind key (k)
Title: Re: scripting
Post by: IdkanYavuk X on February 26, 2013, 03:00:29 pm
Use the Client Event "BindKey" for the k, and then add its respective script.
Title: Re: scripting
Post by: Ahmed Abouelnas on February 26, 2013, 06:46:09 pm
but what to write in ramp.nut and what to write in ramp-binds.nut
Title: Re: scripting
Post by: Vortrex on February 27, 2013, 05:52:13 pm
I think if you set the vehicles position, it will stop automatically (as in, the speed will be reset to 0).

Try something like this:
Code: [Select]
player.Vehicle.Pos = player.Vehicle.Pos
I hope this helps! If you have any more questions, please post them in the script help section and somebody should have an answer.
Title: Re: scripting
Post by: Thijn on February 27, 2013, 08:22:02 pm
You may also set the velocity to 0.

Code: [Select]
player.Velocity = Vector(0,0,0);

Also moved to correct board.