# 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
- [F] —
bool
— Is Point In Shrub — ( InShrub ) - [F] —
bool
— Is Campaign AI — ( AIIsCampaign ) - [F] —
unit
— Grab Unit — ( AIGrabUnit ) - [F] —
int
— Get State — ( AIState ) - [F] —
bool
— Get Flag — ( AIGetFlag ) - [F] —
bool
— Get Coop Flag — ( AIGetCoopFlag ) - [F] —
bool
— Unit Has AI Option — ( UnitGetAIOption ) - [F] —
bool
— Wants To Surrender — ( AIGivingUp ) - [F] —
int
— AI Pathing Cost Map — ( AIPathingCostMap ) - [F] —
int
— AI Pathing Cost Unit — ( AIPathingCostUnit ) - [F] —
point
— AI Self Reinforce Point — ( AISelfReinforceDropPoint )
# Examples
— None found —