Giving the AI control of a Player's unit

No.

But you could use Lua to make the player's unit look like an AI was controlling it

Code:
function OnPlayerDoTurn(iPlayer)
    local pPlayer = Players[iPlayer]

    if (pPlayer:IsHuman()) then
        local pUnit = FindAIesqueUnit(pPlayer)

        ActBrainDead(pUnit)
    end
end
GameEvents.PlayerDoTurn.Add(OnPlayerDoTurn)
 
Back
Top Bottom