# AIGetBestCreepSpot
Flags —
Native
# Arguments
int
— playerunit
— creatorfixed
— createRadius
Returns — point
native point AIGetBestCreepSpot(
int player,
unit creator,
fixed createRadius,
);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:106
// Don't cast if there is no creep point set for this player.
p = AIGetBestCreepSpot(player, aiUnit, 36);
if (p == null) {
return null;
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:170
// Don't cast if there is no creep point set for this player.
p = AIGetBestCreepSpot(player, aiUnit, 9);
if (p == null) {
return;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:107
// Don't cast if there is no creep point set for this player.
p = AIGetBestCreepSpot(player, aiUnit, 30);
if (p == null) {
return null;
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:192
// Don't cast if there is no creep point set for this player.
p = AIGetBestCreepSpot(player, aiUnit, 9);
if (p == null) {
return;