AI unit is local on server. Thus giving us the option to ask
?local _unit:
unit is either playing on server machine, or is AITo take this further you can add
?local _unit && _unit != player:
unit is not player and is on server, so it must be AII came to this very quickly. I may be totally off, but it seems logical doesn't it?
Nor is the deletevehicle test, because I dont want the unit deleted if it is AI.
What on earth is a deletevehicle test?! And do I even dare what will happen if you delete a player unit