Copyright VirtualSim 2004-2020 - All rights reserved
Runtime Plans
Let's compile and run the simulation.
We can see that while running, the Plan-Point can be repositioned.
While the basic Entity is following its plan, let's add another Entity (default) and let's give it a runtime Plan to move somewhere on the map:
If a Plan is disabled (at design time), it can be enabled during runtime (see below)
A Plan can also be frozen/resumed directly from the popup menu (below).
Another Plan-Point can be appended or the whole Plan can be deleted.
Once a Plan-Point has been selected, another one can be added before or after it.
A Plan-Point can also be frozen/released. When a Plan-Point is frozen, the attached Routine is frozen. That does not mean the Entity will freeze. If the Entity was moving towards the Plan-Point, it will continue and pass-by. If the Plan-Point is resumed, the Routine will start again and might drive the Entity back to the Plan-Point location (if goTo or moveTo).
Entity Plans are very flexible and only require that the associated Routines are already defined and available.
Plans can also be controlled from Logics (enable, disable, freeze and resume)