# Transport Set Return

Grammar — Set point location as the return location for player player’s transports when they are done unloading / idle
FlagsNative | Action

Set the return location for a player’s transports when they are done unloading / idle.

# Arguments

  • int — Player
  • point — Location

Returns — void

native void AITransportSetReturn(int player, point center);

Category: AI Advanced / Transports / Actions

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:192

    AITransportIgnore(player, "VikingAssault");
    AITransportSetPanic(player, 0.6);
    AITransportSetReturn(player, targDPoint);

    AISetDefenseRadii(player, 15.0, 10.0, 12.0);

mods/core.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:302

    AITransportIgnore(player, "VikingAssault");
    AITransportSetPanic(player, 0.6);
    AITransportSetReturn(player, PlayerStartLocation(player));

    AISetDefenseRadii(player, 6.0, 7.0, 9.0);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:227

    AITransportIgnore(player, "VikingAssault");
    AITransportSetPanic(player, 0.6);
    AITransportSetReturn(player, targDPoint);

    AISetDefenseRadii(player, 15.0, 10.0, 12.0);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/BaseAI.galaxy:348

    AITransportIgnore(player, "VikingAssault");
    AITransportSetPanic(player, 0.6);
    AITransportSetReturn(player, PlayerStartLocation(player));

    AISetDefenseRadii(player, 6.0, 7.0, 9.0);

mods/warcoop/warcoopdata.sc2modbase.sc2data/TriggerLibs/WarCoopData.galaxy:2971

        lv_player = PlayerGroupNextPlayer(auto7D93E065_g, lv_player);
        if (lv_player < 0) { break; }
        AITransportSetReturn(lv_player, lp_returnLocation);
    }
}