# 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.sc2mod

BaseAI.galaxy

// L191
AITransportSetPanic(player, 0.6)
// L301
AITransportSetPanic(player, 0.6)

# mods/liberty.sc2mod

Protoss.galaxy

// L223
AITransportSetPanic(player, 0.27)

# mods/starcoop/starcoop.sc2mod

BaseAI.galaxy

// L226
AITransportSetPanic(player, 0.6)
// L347
AITransportSetPanic(player, 0.6)

# mods/swarm.sc2mod

Protoss.galaxy

// L248
AITransportSetPanic(player, 0.27)
// L257
AITransportSetPanic(player, 0.27)

# mods/warcoop/warmeleeai.sc2mod

Orc.galaxy

// L592
AITransportSetPanic(player, 0.27)