Hy, I am making a AnyLogic Road traffic simulation. I want to add an event i.e., when an Ambulance cames in road traffic, all the cars lower their speed and came on low lane to give Ambulance space. Any help on how to control cars vehicles speed and lane. What is giving me errors in event action is:
if(carType.amb == true)
{ this.setPreferredSpeed(20,KPH);
this.setLane(1);}