# PlayerSetUnderAIControl

FlagsNative

# Arguments

  • int — player
  • bool — aiControlled

Returns — void

native void PlayerSetUnderAIControl(
	int player,
	bool aiControlled,
);

Category: Unclassified

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:1322

    }

    PlayerSetUnderAIControl(lp_trigPlayer, true);
    if ((libAIAI_gv_aIHeroes[lp_trigPlayer].lv_aIEnabled == true)) {
        return ;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:1362

    }

    PlayerSetUnderAIControl(lp_trigPlayer, false);
    if ((libAIAI_gv_aIHeroes[lp_trigPlayer].lv_aIEnabled == false)) {
        return ;