Jump to content

Recommended Posts

Posted

In case of computing "any vehicle" condition please always exclude current vehicle.

It only affects conditions but actions and iterations remain unchanged.

Maybe rename condition name to "any other wehicle".

Thank you, in advance!

 

Posted

Hello Leslie,
for clarification:

You would like to detect if another vehicle or multiple vehicles is/are on the same track piece that your triggering vehicle entered?

If so, the following script condition will do this for you:

return #layout:getVehiclesOn(track) > 1   

example layout:

track occupied condition.mbp

Kind regards
Goetz

Posted

Thank you, this works.

But I wish use minimum LUA for this. I recommend to modify current command module (vehicle is located on track/contact).

Currently this module uses boolean. Please, add a programmable number: "vehicle is located on track/contact > number" where number is zero by default.

Thank you in advance!

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