The setDespawnTime native AI script function is used to set the time before the current group is despawned.
()setDespawnTime(DespawnTime: f)
()setDespawnTime(80); ()setDespawnTime(-1);
These examples set the despawn time for the current group to 80 ticks and "pseudo-infinite", respectively.