Black Ops III

IsBadGuy

Returns true if the sentient is on the bad guy team (not 'allies', not 'neutral').

Example:

if ( ai IsBadGuy() )