Jump to content

Trams with speed.


Recommended Posts

    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

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...