# 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
- [F] —
void
— Transport Set Return — ( AITransportSetReturn ) - [F] —
void
— Transport Set Panic — ( AITransportSetPanic ) - [F] —
void
— Transport Disable AutoPickup — ( AITransportDisableAutoPickup )
# Examples
# mods/core.sc2mod
// L191
AITransportSetPanic(player, 0.6)
// L301
AITransportSetPanic(player, 0.6)
# mods/liberty.sc2mod
// L223
AITransportSetPanic(player, 0.27)
# mods/starcoop/starcoop.sc2mod
// L226
AITransportSetPanic(player, 0.6)
// L347
AITransportSetPanic(player, 0.6)
# mods/swarm.sc2mod
// L248
AITransportSetPanic(player, 0.27)
// L257
AITransportSetPanic(player, 0.27)
# mods/warcoop/warmeleeai.sc2mod
// L592
AITransportSetPanic(player, 0.27)