Leslie Posted May 1 Posted May 1 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!
Goetz Posted May 1 Posted May 1 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
Leslie Posted May 1 Author Posted May 1 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now