Search results

Jump to navigation Jump to search
  • <syntaxhighlight lang="lua">bool setElementVelocity ( element theElement, float speedX, float speedY, float speedZ )</syntaxhig ...a random player to another random player. If there are less than 2 players it returns ''false''.
    3 KB (370 words) - 04:28, 30 April 2019
  • return setElementVelocity(element, x*diff, y*diff, z*diff) ...t set player vehicle speed to provided one (in predefined unit kph). Note: It doesn't care if player is driver or passenger.
    2 KB (239 words) - 13:11, 22 February 2024
  • {{OOP||[[element]]:getVelocity|velocity|setElementVelocity|}} ...if the element is a player in a car. Use the vehicle element in this case. It will also fail if the element specified does not have a velocity, or does n
    2 KB (289 words) - 17:49, 25 May 2018
  • * 1) Clearly it gets/sets the states of '''analog''' inputs. This means returning and sett ...d for both "Keys" and "Controls". This means that unlike getControlState, it will work for both types of input.
    6 KB (976 words) - 18:48, 10 September 2016
  • setElementVelocity(vehicle, 0.2, 0.2, 0.2) ...object" individually. Instead of having to call a function and referencing it inside the call, you actually call the function INSIDE the class.
    9 KB (1,385 words) - 05:52, 6 November 2023
  • To use it, you need to add library to your class-path. It's included in the zip file below.
    21 KB (2,792 words) - 20:47, 23 September 2016