Anton980
06-07-2011, 12:47 PM
Hello everyone! I am currently working on a traffic control set up using PFlow that involves a traffic light and a deflector to stop traffic or let it through.
Below is a screenshot of the current setup for the traffic light as well as one of the scripts.
http://farm6.static.flickr.com/5316/5808299732_f78be64cb5_b.jpg
The script for "red light" is identical, except for the coordinates
The deflector's position is controlled by 2 scripts inside the PFlow for the traffic light - when the "green light" event begins, the deflector is given coordinates of 0,0,-50 and is moved out of the traffic's way. Then when the red light event is triggered, a very similar script places the deflector back to 0,0,0
For some reason the scripts conflict with each other. The deflector moves to 0,0,-50 as soon as green light comes on, but only stays at those coordinates for one frame, after which it moves back to 0,0,0. If I disable the "red light" script - the deflector moves at a right time and stays at a right place.
Could anyone tell me what I'm doing wrong? Thank you very much!
Below is a screenshot of the current setup for the traffic light as well as one of the scripts.
http://farm6.static.flickr.com/5316/5808299732_f78be64cb5_b.jpg
The script for "red light" is identical, except for the coordinates
The deflector's position is controlled by 2 scripts inside the PFlow for the traffic light - when the "green light" event begins, the deflector is given coordinates of 0,0,-50 and is moved out of the traffic's way. Then when the red light event is triggered, a very similar script places the deflector back to 0,0,0
For some reason the scripts conflict with each other. The deflector moves to 0,0,-50 as soon as green light comes on, but only stays at those coordinates for one frame, after which it moves back to 0,0,0. If I disable the "red light" script - the deflector moves at a right time and stays at a right place.
Could anyone tell me what I'm doing wrong? Thank you very much!
