- Documentation
- Server functions
- setVehicleDummyPosition
Function
setVehicleDummyPosition
Stores the position of a helper point (dummy) for one vehicle, e.g. the exhaust or lights.
Syntax
bool setVehicleDummyPosition(vehicle vehicle, string dummy, float x, float y, float z)Arguments
vehiclevehicle- The vehicle.
dummystring- Point name, e.g.
exhaust,light_front_main,engine. xfloat- X in vehicle space (m).
yfloat- Y (m).
zfloat- Z (m).
Returns
true on success.
Example
local vehicle = createVehicle(411, 2000, -1690, 13.5)
setVehicleDummyPosition(vehicle, "exhaust", 0.5, -2.3, -0.3)
Notes
State for scripts. The game does not move points of a single vehicle yet; the seats of a whole model are moved with setVehicleModelDummyPosition.
See also
getVehicleDummyPositionReturns the vehicle helper point position stored withsetVehicleDummyPosition.resetVehicleDummyPositionsClears every vehicle helper point stored withsetVehicleDummyPosition.setVehicleModelDummyPositionStores the position of a helper point (dummy) for a whole vehicle model. Theseat_frontandseat_rearpoints move the seats (front and rear) in the game for every player; other points are stored for scripts.