[Add] AI API functions, faction checks