# PlayerSetAllowAIControl
Flags —
Native
# Arguments
int
— playerbool
— allow
Returns — void
native void PlayerSetAllowAIControl(
int player,
bool allow,
);
# Related
Category: Unclassified
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:1258
lv_currentPlayer = 1;
for ( ; lv_currentPlayer <= auto65D01E62_ae ; lv_currentPlayer += 1 ) {
PlayerSetAllowAIControl(lv_currentPlayer, true);
}
lv_currentPlayer = 1;