Jump to content

Empfohlene Beiträge

Geschrieben

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!

 

Geschrieben

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

Geschrieben

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!

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen.

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...