10.07.2012, 17:01
You need to check if IsPlayerInRangeOfPoint of the barrier object and if the player is a cop, then Move(Dynamic)Object in a Timer.
Timers can cause bugs though, say 2 cops enter the area, so you should add a variable that sets to one if the gate is already opening, and set it back to zero when it closes.
Timers can cause bugs though, say 2 cops enter the area, so you should add a variable that sets to one if the gate is already opening, and set it back to zero when it closes.