# Wants To Surrender
Grammar — Player player wants to surrender
Flags —Native
|Function
Check if this player wants to concede a skirmish game.
# Arguments
int
— Player
Returns — bool
native bool AIGivingUp(int player);
# Related
Category: AI Advanced / Utility / Functions
- [F] —
bool
— Is Point In Shrub — ( InShrub ) - [F] —
bool
— Is Campaign AI — ( AIIsCampaign ) - [F] —
unit
— Grab Unit — ( AIGrabUnit ) - [F] —
int
— Get State — ( AIState ) - [F] —
bool
— Get Flag — ( AIGetFlag ) - [F] —
bool
— Get Coop Flag — ( AIGetCoopFlag ) - [F] —
bool
— Unit Has AI Option — ( UnitGetAIOption ) - [F] —
bool
— Wants To Surrender — ( AIGivingUp ) - [F] —
int
— AI Pathing Cost Map — ( AIPathingCostMap ) - [F] —
int
— AI Pathing Cost Unit — ( AIPathingCostUnit ) - [F] —
point
— AI Self Reinforce Point — ( AISelfReinforceDropPoint )
# Examples
# mods/liberty.sc2mod
// L800
AIGivingUp(lv_player)
// L806
AIGivingUp(lv_player)