# Default/Code Get Maker

Grammar — (Default Code Version) Return the maker for object object made by player player
FlagsNative | Function

Returns the ID of the unit type that directly makes the specified 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 AIDefaultGetMaker(
	int player,
	string aliasType,
);

Category: AI Advanced / Requirements / Functions

# Examples

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

    // override any special cases here

    return AIDefaultGetMaker(player, objType);
}

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

    // override any special cases here

    return AIDefaultGetMaker(player, objType);
}