# Unit Has AI Option
Grammar — Get the UnitAIOption option of unit u
Flags —Native|Function
Returns true if the unit has the specified AI option enabled.
# Arguments
unit— Unitint<preset::UnitAIOption> — Option
Returns — bool
native bool UnitGetAIOption(unit inUnit, int inOption);
# Related
Category: AI Advanced / Utility / Functions
- Is Point In Shrub —
bool— InShrub - Is Campaign AI —
bool— AIIsCampaign - Grab Unit —
unit— AIGrabUnit - Get State —
int— AIState - Get Flag —
bool— AIGetFlag - Get Coop Flag —
bool— AIGetCoopFlag - Unit Has AI Option —
bool— UnitGetAIOption - Wants To Surrender —
bool— AIGivingUp - AI Pathing Cost Map —
int— AIPathingCostMap - AI Pathing Cost Unit —
int— AIPathingCostUnit - AI Self Reinforce Point —
point— AISelfReinforceDropPoint
# Examples
— None found —