# Transport Disable AutoPickup

Grammar — Disables auto-pickup transport logic for AI player player’s transports.
FlagsNative | Action

Disables auto-pickup transport logic for an AI player’s transports.

# Arguments

  • int — Player

Returns — void

native void AITransportDisableAutoPickup(int player);

Category: AI Advanced / Transports / Actions

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:9911

    AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER));
    AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION22, PlayerGroupSingle(gv_pLAYER_01_USER));
    AITransportDisableAutoPickup(gv_pLAYER_02_DOMINION);
    AIToggleBulliesInRegion(gv_pLAYER_02_DOMINION, RegionEntireMap(), false);
    AIToggleBulliesInRegion(gv_pLAYER_02_DOMINION2, RegionEntireMap(), false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:9911

    AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER));
    AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION22, PlayerGroupSingle(gv_pLAYER_01_USER));
    AITransportDisableAutoPickup(gv_pLAYER_02_DOMINION);
    AIToggleBulliesInRegion(gv_pLAYER_02_DOMINION, RegionEntireMap(), false);
    AIToggleBulliesInRegion(gv_pLAYER_02_DOMINION2, RegionEntireMap(), false);