Thanks macguba, that helped.
This is much harder than I thought, though. I mean to get a script to work properly. There is always something not working as supposed. Now I'm having a problem that police can't shoot the player if player is too close (distance <10, or something). If I make the police to be on enemy side, it works otherwice, but sometimes the police starts running towards the position where its "group leader" was, even if I deleted that unit after the police got his side. Police domove getpos police don't work in this situation.