# PlayerSetUnderAIControl
Flags —
Native
# Arguments
int
— playerbool
— aiControlled
Returns — void
native void PlayerSetUnderAIControl(
int player,
bool aiControlled,
);
# Related
Category: Unclassified
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:1322
}
PlayerSetUnderAIControl(lp_trigPlayer, true);
if ((libAIAI_gv_aIHeroes[lp_trigPlayer].lv_aIEnabled == true)) {
return ;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:1362
}
PlayerSetUnderAIControl(lp_trigPlayer, false);
if ((libAIAI_gv_aIHeroes[lp_trigPlayer].lv_aIEnabled == false)) {
return ;