benwilkins Posted July 11, 2011 Share Posted July 11, 2011 function makeTrain(source) tram = createVehicle(449,-2265.34, 548.89, 35) setTrainDerailable(tram, false) local pilot1 = createPed(241,1693.38,-1959,15.6) warpPedIntoVehicle (pilot1, tram) setTrainSpeed(tram, 0.3) end addCommandHandler("maketram", makeTrain) The tram spawns, will go for about 2 seconds, and then stops still. How can I make it contiunally at 0.3 speed? Link to comment
qaisjp Posted July 12, 2011 Share Posted July 12, 2011 speedTimer = setTimer(setTrainSpeed, 1500, 0, tram, 0.3) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now