Calculating with instance variables?
What you could do is use a math_counter and a logic_case.
Use the number of the math_counter to trigger that case, and add a corresponding path track to that case
Quote:
This should be an extendable elevator system, you put those instances on top of each other and say them which floor they should be. The path connection between the instances and the communication were supposed to be automatic than, but I will just add another variable, which has to be defined as ($floor)+1. I think mappers can add 1 to another number
okay, typo's fixed, but still no clue.
You want to place elevators on top of each other? so you can say to what floor they should go?
You can just use the PTI elevator or use a path_track with a move_to_pathnode input. What does your elevator do? I honestly don't get it.
Example: $floor is 0. Than the path_track is named "@mesys_elevator_path_0". As a result from the calculation the Next Path Track should be: "@mesys_elevator_path_1" Got it now?
Much simpler solution add 3 buttons in your elevator, one for floor 1 one for 2 and one for 3. (much like a real elevator.
Floor one button:
OnPressed movetopathnode floor_1
floor two button:
OnPressed movetopathnode floor_2
Floor three button
OnPressed movetopathnode floor_3
Then you can have buttons on the exterior as well with exactly the same inputs.
That should be a lot easier!