I got this script which simulates punching any soldier with your rifle. Something like A Talking Penguin made, but a lot better, because the ATP version allows you to kill soldier but also tanks, cars, etc with that action in a 2 meter radius.
I didn't like that, so I rewrote the script plus added random punching sounds and it looks a LOT better now.
However I didn't got rid of the killing cars and tanks problem.
I don't know how to get a class of any unit like man, car, tank etc like in the CfgVehicles list.
Could somebody plz tell me how to ID a unit if its a car or a tank or just a person?? without having to name any vehicles??