question

JP117 avatar image
0 Likes"
JP117 asked Jeanette F commented

Event Triggered Source on Astar Block

Is it possible to get two labels on the token. One for the object that is blocked and one for the object that is blocking it


1695069078451.png

FlexSim 22.2.0
astarevent trigger
1695069078451.png (42.1 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @JP117, was Kavika F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Kavika F avatar image
0 Likes"
Kavika F answered

Hey @JP117, you can get the object being blocked if you assign current to a label like this:

1695077748804.png

But you aren't able to see what blocked the object. You may want to see about using Agent system where you can add objects (or "Agents") to a system and define a behavior for them. If you add a "ProximitySystem", then you can have some trigger fire when two agents in the system get too close to each other. If you use this in conjunction with A-Star, then you might get your desired behavior.


1695077748804.png (11.0 KiB)
5 |100000

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