# Default/Code Get First Unfinished Req

Grammar — (Default Code Version) Get the first unfinished requirment to make object object for player player
FlagsNative | Function

Returns the first unfinished requirment to make an object for a player. Same as the script version, except this version cannot be modified to handle custom requirements.

# Arguments

  • int — Player
  • string — Object

Returns — string

native string AIDefaultGetFirstUnfinishedReq(
	int player,
	string aliasType,
);

Category: AI Advanced / Requirements / Functions

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/RequirementsAI.galaxy:701

    // override any special cases here

    return AIDefaultGetFirstUnfinishedReq(player, objType);
}

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/RequirementsAI.galaxy:738

    // override any special cases here

    return AIDefaultGetFirstUnfinishedReq(player, objType);
}