Jump to content

Resource only works when in range


Recommended Posts

Hi,

i created a train, which drives along the tracks, but when I try to get in, it respawns, and I don't want players to get into this vehicle. Also the train only spawns, or drives, when in draw distance, so when I leave, get back, the train continues driving. But only when it is in somebodys draw distance. How can I change that?

Link to comment

When the train is spawned, trigger a client side event setElementStreamable(false), and add a check point on the track (Or set a timer) that will set it not streamable everytime it triggers for new players. Basicly what this does, is prevent the train from streaming out, fixing your issue.

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