You're a target for the enemy whether you're in a vehicle or not.
If you want a unit to be not a target for any reason, the code you need is
unit1 setCaptive true
when you want the bad guys to shoot at him again, use
unit1 setCaptive false
Depending on exactly what you want to achieve you can combine this with other commands: for example if you wanted a loon to be setcaptive true when he was in a particular vehicle you could create a trigger, set to repeatedly
condition: unit1 in UAZ1
on activation: unit1 setcaptive true
on deactivation: unit1 setcaptive false
Does that help?
If you were looking for a gameplay tip (rather than an editing one) then you're in the wrong place: head over to the official forums at
www.flashpoint1985.com