I already had this question before but than for transporters. In my model I want to calculate the amounts of agents using a path by using a counter as variable, but hower the method I'm currently using for transporters does not work for agents without transporters.
I currently create a node (see first image) which the agents should pass and put a counter in here (see picture 2). But however this seems not to work for just using agents without transporter. Is there another method? Thanks.
what you can do, as a dumb solution is to have 2 events in your agent... one that is cyclic every 100 miliseconds or so that does absolutely nothing
and another one that is a conditional event that has the condition:
node.contains(getX(),getY())
on this event you will make the count.
when the movement begins (however you do that), you restart the conditional event:
event.restart();