Is it possible to keep track of a (To-be-)moved MU by, e.g., assigning it directly to a variable as one can do using the "create" statement? I tried something like
but it did not work. Should this work, and if not, what other ways are there to know the new path of the object after it was moved?
Solved! Go to Solution.
You need exactly this method: setMUTraceRouteMethod
Use to appoint a method that registers the moves in e.g. a table.
Excerpt from the Help-page:
The function setMUTraceRouteMethod designates a method, which is called each and every time, when an MU is moved to another object.
move only returns true/false depend on if the move command was successfull or not, but
you can read at each time the location of the object with
var newDest: object:=someObject.~
freelance simulation specialist