Jump to content

Can anyone tell me how to make a train despawn and then re-spawn


Recommended Posts

6./ZG26_Emil
Posted

I have a train that starts at one location and ends up at another. I would like it to despawn and then respawn at the first location and possibly throw in some random change it would not respawn. I have seen there is a [random chance] value that can be changed from 0-100%....I guess 100% is a guaranteed spawn and 0 zero chance?

 

If anyone has one like this that I can copy or can help me out it would be appreciated 

Posted

Here is something that should get you started.

If you want it to respawn after being destroyed, connecting OnKilled or OnDamaged to the Respawn node should do the trick.

TrainRus.zip

  • Upvote 1
6./ZG26_Emil
Posted

Here is something that should get you started.

If you want it to respawn after being destroyed, connecting OnKilled or OnDamaged to the Respawn node should do the trick.

 

Thanks Coconut!

Posted

... and for the random thing, I think there is a restartable random choice group in the groups thread.

Posted

Here's a test mission with the random element (based on Coconut's design). The train has a 75% chance of respawning.

 

JimTMTestTrainSpawn.zip

6./ZG26_Emil
Posted

You guys are awesome thanks again!

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
×
×
  • Create New...