BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Is it possible to add objects to a track?

2 posters

Go down

Is it possible to add objects to a track? Empty Is it possible to add objects to a track?

Post by RailPGR Tue Oct 08, 2024 3:41 pm

Hello,
I was wondering if it would be possible to add an object (Debris, a rock, a tree?) on the track, so that should a train collide with the object, a derailment would occur?

Even better if anyone is aware of any routes that already has objects on the track? Just so I have something to play around with.

Appreciate any help,
-Josh

RailPGR

Posts : 1
Join date : 2024-10-08

Back to top Go down

Is it possible to add objects to a track? Empty Re: Is it possible to add objects to a track?

Post by leezer3 Fri Oct 11, 2024 12:21 pm

Sure.

You either want:
Code:
.Buffer

Places a buffer on Rail 0.

Or:
Code:
.RailBuffer railIndex;affectsAI

Places a buffer on the rail specified by railIndex.
affectsAI should be set to 1 if AI trains can collide with this buffer.

You'll need to place a visual representation separately if you want one.

leezer3

Posts : 1980
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum