# AISetWantsToUpgrade
Flags —
Native
# Arguments
unit
— u
Returns — void
native void AISetWantsToUpgrade(unit u);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:952
}
AISetWantsToUpgrade(aiUnit);
ord = AICreateOrder(player, c_AB_UpgradeToWarpGate, 0);
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:922
}
AISetWantsToUpgrade(aiUnit);
ord = AICreateOrder(player, c_AB_UpgradeToWarpGate, 0);