Not how to make a condition on it, I have already tried everything.
How should work.
When a police car is created and it moves, it has a siren. When the car arrives at the stop and stops, a policeman comes out of it. If a policeman is standing nearby (a field is superimposed on him that checks whether he is standing with the car), the car’s siren continues to flash. If a policeman is killed and no policeman gets into the field anymore, then the siren of the car no longer flashes.
And this condition should work for every new car.
I can not do it, because if one condition works, then it applies to all new cars and it turns out that they are already driving without sirens, or if a policeman is killed, then all cars that have the same siren can also be killed.
Help please do not know how to be.
Project:
yadi.sk/d/u660gSEL69Q6KQ