# Escorts Of Unit Group
Grammar — Escorts of unitGroup|Unit Group
Flags —Native|Function
Returns a group of all of the units assigned to escort a unit group.
# Arguments
unitgroup— UnitGroup
Returns — unitgroup
native unitgroup AIGetAllEscortsGroup(unitgroup ug);
# 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
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:2687
}
auto9A060CE7_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
auto9A060CE7_u = UnitGroupCount(auto9A060CE7_g, c_unitCountAll);
for (;; auto9A060CE7_u -= 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:2743
UnitForceStatusBar(gf_NodeMatchingCustomValue(FixedToInt(UnitGetCustomValue(EventUnit(), 0))), false);
PingDestroy(gv_protossHarvesterPings[FixedToInt(UnitGetCustomValue(EventUnit(), 0))]);
auto16B0C7AE_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
auto16B0C7AE_u = UnitGroupCount(auto16B0C7AE_g, c_unitCountAll);
for (;; auto16B0C7AE_u -= 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:2814
gv_protossScore = (gv_protossScore + 1);
TriggerExecute(gt_PrimaryObjectiveCollectTerrazineUpdate, true, false);
auto8E33FE20_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
auto8E33FE20_u = UnitGroupCount(auto8E33FE20_g, c_unitCountAll);
for (;; auto8E33FE20_u -= 1) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2map — MapScript.galaxy:2687
}
auto9A060CE7_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
auto9A060CE7_u = UnitGroupCount(auto9A060CE7_g, c_unitCountAll);
for (;; auto9A060CE7_u -= 1) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2map — MapScript.galaxy:2743
UnitForceStatusBar(gf_NodeMatchingCustomValue(FixedToInt(UnitGetCustomValue(EventUnit(), 0))), false);
PingDestroy(gv_protossHarvesterPings[FixedToInt(UnitGetCustomValue(EventUnit(), 0))]);
auto16B0C7AE_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
auto16B0C7AE_u = UnitGroupCount(auto16B0C7AE_g, c_unitCountAll);
for (;; auto16B0C7AE_u -= 1) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2map — MapScript.galaxy:2814
gv_protossScore = (gv_protossScore + 1);
TriggerExecute(gt_PrimaryObjectiveCollectTerrazineUpdate, true, false);
auto8E33FE20_g = AIGetAllEscortsGroup(libNtve_gf_ConvertUnitToUnitGroup(EventUnit()));
auto8E33FE20_u = UnitGroupCount(auto8E33FE20_g, c_unitCountAll);
for (;; auto8E33FE20_u -= 1) {