Author Topic: scripting  (Read 1482 times)

Ahmed Abouelnas

  • Newbie
  • *
  • Posts: 39
  • Karma: +2/-11
  • Ahmed Abouelnas
    • View Profile
scripting
« on: February 26, 2013, 01:00:20 pm »
how to make my car stop by clicking the bind key (k)

IdkanYavuk X

  • Jr. Member
  • **
  • Posts: 91
  • Karma: +37/-36
  • Developer for The Newport Experience
    • View Profile
Re: scripting
« Reply #1 on: February 26, 2013, 04:00:29 pm »
Use the Client Event "BindKey" for the k, and then add its respective script.
« Last Edit: February 27, 2013, 09:40:17 pm by IdkanYavuk »

Ahmed Abouelnas

  • Newbie
  • *
  • Posts: 39
  • Karma: +2/-11
  • Ahmed Abouelnas
    • View Profile
Re: scripting
« Reply #2 on: February 26, 2013, 07:46:09 pm »
but what to write in ramp.nut and what to write in ramp-binds.nut

Vortrex

  • Full Member
  • ***
  • Posts: 267
  • Karma: +54/-73
    • View Profile
Re: scripting
« Reply #3 on: February 27, 2013, 06: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.

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: scripting
« Reply #4 on: February 27, 2013, 09:22:02 pm »
You may also set the velocity to 0.

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

Also moved to correct board.

 

© Liberty Unleashed Team.