question

JP117 avatar image
0 Likes"
JP117 asked Jason Lightfoot commented

Changing Travel Speed While Traveling Astar

Trying to set the speed of an object, copied this code I found but it doesn't seem to work any suggestions

1703191693374.png

FlexSim 23.2.1
astartraveler
1703191693374.png (75.4 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

Have you debugged this? Is token.Agent pointing to the task executer or to an Agent class? If it's pointing to the Agent then you'll probably need to refer to token.Agent.object to set the speed and do the preemption. If you post the model we can tell you for sure.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.