Method PlayerBotAI:HasStrategy [-] [+]

Returns true if the given strategy is active in the given state.

Synopsis

hasStrategy = PlayerBotAI:HasStrategy( name )
hasStrategy = PlayerBotAI:HasStrategy( name, botState )

Arguments

string name
See method description.
number botState (1)

See [PlayerbotAI]:GetState.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

boolean hasStrategy
See method description.