# Transport Set Return
Grammar — Set point location as the return location for player player’s transports when they are done unloading / idle
Flags —Native
|Action
Set the return location for a player’s transports when they are done unloading / idle.
# Arguments
int
— Playerpoint
— Location
Returns — void
native void AITransportSetReturn(int player, point center);
# Related
Category: AI Advanced / Transports / Actions
- Transport Set Return —
void
— AITransportSetReturn - Transport Set Panic —
void
— AITransportSetPanic - Transport Disable AutoPickup —
void
— AITransportDisableAutoPickup
# Examples
mods/core.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2971
lv_player = PlayerGroupNextPlayer(auto7D93E065_g, lv_player);
if (lv_player < 0) { break; }
AITransportSetReturn(lv_player, lp_returnLocation);
}
}