# AI Time Is Paused
Grammar — AI time is paused
Flags —Native
|Function
Returns true if the AI time is paused.
Returns — bool
native bool AITimeIsPaused();
# 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
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2143
libNtve_gv__CineModeSavedSpeed = GameGetSpeedValue();
GameSetSpeedValue(c_gameSpeedNormal);
libNtve_gv__CineModeSavedAIPaused = AITimeIsPaused();
AITimePause(true);
GameSetSpeedLocked(true);
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1827
libNtve_gv__CineModeSavedSpeed = GameGetSpeedValue();
GameSetSpeedValue(c_gameSpeedNormal);
libNtve_gv__CineModeSavedAIPaused = AITimeIsPaused();
AITimePause(true);
GameSetSpeedLocked(true);
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:4034
}
if ((AITimeIsPaused() == false)) {
TriggerDebugOutput(1, StringExternal("Param/Value/288BBAD8"), true);
libComC_gf_PauseAITimeCampaign(true);
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:6797
}
if (!((AITimeIsPaused() == true))) {
return false;
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:6863
}
if (!((AITimeIsPaused() == true))) {
return false;
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:6917
}
if (!((AITimeIsPaused() == true))) {
return false;
}
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2map — MapScript.galaxy:4034
}
if ((AITimeIsPaused() == false)) {
TriggerDebugOutput(1, StringExternal("Param/Value/288BBAD8"), true);
libComC_gf_PauseAITimeCampaign(true);
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2map — MapScript.galaxy:6797
}
if (!((AITimeIsPaused() == true))) {
return false;
}
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2map — MapScript.galaxy:6863
}
if (!((AITimeIsPaused() == true))) {
return false;
}
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2map — MapScript.galaxy:6917
}
if (!((AITimeIsPaused() == true))) {
return false;
}