Jump to content

Working Train


Recommended Posts

Posted

Hello i have train script but so far i have only train and this train is driving around map i want to do that when train is on station in LS/LV/SF train stopped and people can enter train on passager and be transported to another city help :D 

Posted (edited)

It may work if you create a colshape, attach to the train, create a marker for each station and use onClientMarkerHit or onMarkerHit depending on whether it is a client or server side and when the train enters the marker to stop, and when someone enters the train use the isElementWithinColShape function to check the players in the colshape and make it move again. I don't test it so i don't know if this will work, it's just an idea I thought of.
 

Edited by Hydra

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