In my project i want people in A* network to stop at barrier or flow through barrier according to the label assigned to a control point marked in blue circle.
the label of the control point fluctuate between "green" and "red" for every 15 seconds.
at first "people red assign label" function the label of control point is "red". at this point if any people approach the barrier, it should not allow people to cross it.
after 15 seconds the label of that control point changes to green. at this point barrier should allow people to cross through barrier.
is there a way that we can make this kind of modifications to barrier according to the label of a control point.