The setAutoSpawn native AI script function determines whether the current group should respawn automatically after despawn.
()setAutoSpawn(AutoSpawn: f)
()setAutoSpawn(1);
This example code sets the group to respawn automatically after despawn.