1
2
3
4
5
6
7
8
9
10
while {damage car < 1} do {
	if (count (nearestObjects [car,["CAManBase"],50]) > 0) then {
		if ((nearestObjects [car,["CAManBase"],50]) select 0 == man1) then {
			car lock true;
		} else {
			car lock _false
		};
	}; 
	sleep 5;
};