# Tactical AI - Flee
Grammar — Suggest that who flee from unit from at least distance distance. Optionally passes marker marker info
Flags —Native
|Action
Tells a unit to flee from another unit at least the specified distance. The Marker parameter is optional, pass in null if you don’t want to use it.
# Arguments
unit
— Whounit
— Fromint
— Distancemarker
— Marker
Returns — int
native int AICastFlee(
unit who,
unit from,
int distance,
marker mark,
);
# Related
Category: AI Advanced / Tactical / Actions
- [F] —
void
— Set Ignored By Wave — ( AISetIgnoredByWave ) - [F] —
void
— Clear Cloaked Attacker — ( AIClearCloakedAttacker ) - [F] —
int
— Tactical AI - Cast — ( AICast ) - [F] —
int
— Tactical AI - Flee — ( AICastFlee ) - [F] —
void
— Call Original Tactical AI Think — ( AIBaseThink ) - [F] —
void
— Call Unit Ability Tactical Script — ( AIExecuteAbilTactical ) - [F] —
void
— Set Tactical AI Range — ( libNtve_gf_SetTacticalAIRange ) - [F] —
void
— Set Tactical AI Think — ( libNtve_gf_SetTacticalAIThink ) - [F] —
void
— Enable/Disable Tactical For Unit — ( AISetUnitTacticalDisabled ) - [F] —
void
— Enable/Disable Tactical For Unit Group — ( AISetGroupTacticalDisabled )
# Examples
# mods/core.sc2mod
// L1174
AICastFlee(UnitGroupUnit(targetGroup, scanCount), aiUnit, 6, mark)
// L1194
AICastFlee(UnitGroupUnit(targetGroup, scanCount), aiUnit, 6, mark)
// L1147
AICastFlee(UnitGroupUnit(targetGroup, scanCount), aiUnit, 6, mark)
// L1167
AICastFlee(UnitGroupUnit(targetGroup, scanCount), aiUnit, 6, mark)