# PlayerSetAllowAIControl

FlagsNative

# Arguments

  • int — player
  • bool — allow

Returns — void

native void PlayerSetAllowAIControl(
	int player,
	bool allow,
);

Category: Unclassified

# Examples

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

    lv_currentPlayer = 1;
    for ( ; lv_currentPlayer <= auto65D01E62_ae ; lv_currentPlayer += 1 ) {
        PlayerSetAllowAIControl(lv_currentPlayer, true);
    }
    lv_currentPlayer = 1;