# Unit Is Suicidal
Grammar — unit is suicidal
Flags —Native|Function
Returns true if the unit is flagged as a suicide unit.
# Arguments
unit— Unit
Returns — bool
native bool AIIsSuicideUnit(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 —