Page 1 of 1

Flowsplitter enabled during simulation?

Posted: Tuesday 16 January, 2018 - 10:01
by Gothicawakening
So I'm trying to use a FlowSplitter that only activates once a passage opens based on a trigger.

I tried setting the FlowSplitter to Enabled in my trigger code, and visually it seems to work (ie. It Changes from Red) but the agents are ignoring it.

Can a FlowSplitter be enabled in this way, or only before a simulation is started?

Thanks for any assistance.

Re: Flowsplitter enabled during simulation?

Posted: Tuesday 16 January, 2018 - 11:00
by Gothicawakening
Is there any way to delete post on this forum? If not, could a mod please delete this.

This problem was resolved, something else was causing it.

Re: Flowsplitter enabled during simulation?

Posted: Tuesday 16 January, 2018 - 11:08
by marlies
Hi,

In case you used flowsplitter_setenabled (which only works before running) it is better to use FlowSplitter_UpdateEnabled

See also attached example where the action timer changes both the direction of the passageway and enables the flow splitter (there are multiple ways to do this.... I now chose the channel connections).

Regards, Marlies

Re: Flowsplitter enabled during simulation?

Posted: Tuesday 16 January, 2018 - 11:58
by Gothicawakening
FlowSplitter_UpdateEnabled
That was what I needed. I will try and find UPDATE instead of SET functions as those will likely work better!

Thanks, appreciate the help.