# Transport Set Panic
Grammar — Set player player’s transports to flee at value percent health
Flags —Native
|Action
Sets the percentage health at which a player’s transports should flee. (Value range from 0 to 1).
# Arguments
int
— Playerfixed
— Value
Returns — void
native void AITransportSetPanic(int player, fixed value);
# 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:191
AITransportIgnore(player, "VikingAssault");
AITransportSetPanic(player, 0.6);
AITransportSetReturn(player, targDPoint);
mods/core.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:301
AITransportIgnore(player, "InfestedAbomination");
AITransportIgnore(player, "VikingAssault");
AITransportSetPanic(player, 0.6);
AITransportSetReturn(player, PlayerStartLocation(player));
mods/liberty.sc2mod — base.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.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:226
AITransportIgnore(player, "VikingAssault");
AITransportSetPanic(player, 0.6);
AITransportSetReturn(player, targDPoint);
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/BaseAI.galaxy:347
AITransportIgnore(player, "InfestedTerranCampaign");
AITransportIgnore(player, "VikingAssault");
AITransportSetPanic(player, 0.6);
AITransportSetReturn(player, PlayerStartLocation(player));
mods/swarm.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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);