Jump to content

Moving vehicles


Recommended Posts

Posted (edited)

Hi, I have a script for moving vehicles (salon), only he has one problem. If I reset the script and I am alone, there is no cut, but after re-entering the server there are cuttings. The script is on the server and looks like this:

infernus = createVehicle(411,0,0,0)  
local objekt=createObject(2034,0,0,0)
setElementAlpha(objekt,0)
setElementCollisionsEnabled(objekt,false)
attachElements(infernus,objekt,0,0,0)
setVehicleEngineState(infernus,false)

function mainFunction()
    moveObject(objekt,6000,1,0,0)
end
mainFunction()

However, if I move away from the vehicle and approach it again, there are no cuts.

Edited by Patrick
codeblock

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...