# Transport Set Panic

Grammar — Set player player’s transports to flee at value percent health
FlagsNative | Action

Sets the percentage health at which a player’s transports should flee. (Value range from 0 to 1).

# Arguments

  • int — Player
  • fixed — Value

Returns — void

native void AITransportSetPanic(int player, fixed value);

Category: AI Advanced / Transports / Actions

# Examples

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


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

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

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

mods/liberty.sc2modbase.sc2data/TriggerLibs/Protoss/Protoss.galaxy:223

    AISetDefaultArmyUnit(player, c_PU_Zealot);
    AISetDefaultTownHall(player, c_PB_Nexus);
    AITransportSetPanic(player, 0.27); // just below max shield threshold

    AISetMainState(player, e_mainState_Open, e_mainSubState_Init);

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


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

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

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

mods/swarm.sc2modbase.sc2data/TriggerLibs/Protoss/Protoss.galaxy:248

    AISetDefaultArmyUnit(player, c_PU_Zealot);
    AISetDefaultTownHall(player, c_PB_Nexus);
    AITransportSetPanic(player, 0.27); // just below max shield threshold
    //AISetFlag(player, e_flagsDiversion, true);  // for now start diverson right away

mods/void.sc2modbase.sc2data/TriggerLibs/Protoss/Protoss.galaxy:257

    AISetDefaultArmyUnit(player, c_PU_Zealot);
    AISetDefaultTownHall(player, c_PB_Nexus);
    AITransportSetPanic(player, 0.27); // just below max shield threshold
    //AISetFlag(player, e_flagsDiversion, true);  // for now start diverson right away

mods/warcoop/warmeleeai.sc2modbase.sc2data/TriggerLibs/Orc/Orc.galaxy:592

    AISetDefaultArmyUnit(player, GRUNT);
    AISetDefaultTownHall(player, GREAT_HALL);
    AITransportSetPanic(player, 0.27); // just below max shield threshold
    //AISetFlag(player, e_flagsDiversion, true);  // for now start diverson right away
    GAw3_AIAddHealer(player);