# Escorts Of Unit
Grammar — Escorts of unit
Flags —Native|Function
Returns a group of all of the units assigned to escort a unit.
# Arguments
unit— Unit
Returns — unitgroup
native unitgroup AIGetAllEscorts(unit u);
# Related
Category: AI / MiscCampaign / Functions
- AI Time Is Paused —
bool— AITimeIsPaused - Elapsed AI Time —
fixed— AIGetTime - Wave Of Unit —
wave— AIUnitGetWave - Units Of Wave —
unitgroup— AIWaveGetUnits - Escorts Of Unit —
unitgroup— AIGetAllEscorts - Escorts Of Unit Group —
unitgroup— AIGetAllEscortsGroup - Units In Waves With Target —
unitgroup— AIGetUnitsInWavesWithTarget - Unit Is Script Controlled —
bool— AIIsScriptControlled - Unit Is Unavailable For Wave Use —
bool— AIIsNotUsableInWaves - Unit Is Suicidal —
bool— AIIsSuicideUnit - Difficulty Value (Integer) —
int— libNtve_gf_DifficultyValueInt - Difficulty Value (Real) —
fixed— libNtve_gf_DifficultyValueFixed - Difficulty Value (Unit Type) —
string<gamelink::Unit> — libNtve_gf_DifficultyValueUnitType - Difficulty Is (one)
- Difficulty Is (two)
- Difficulty High
- Difficulty Low
- Random Spawn Point —
point— AIRandomSpawnPoint
# Examples
— None found —