IF
// Event to start spawning hostiles
AND
CharacterCreateAtPosition(_x,_y,_z, "Harth_Field_Skeleton_weak_04588216-1307-4569-ae7d-1a34aa43f4c8", 1, _Skeleton1)
THEN
DB_MyModPrefix_TemporaryHostileSpawn(_Skeleton1); // Add _Skeleton1 to a database for future referencing
IF
// Event to kill off remaining spawned hostiles
AND
DB_MyModPrefix_TemporaryHostileSpawn(_SpawnedHostiles) // Refers to previously stored spawns
THEN
CharacterDieImmediate(_SpawnedHostiles); // Kills any living spawned creature immediately
SetOnStage(_SpawnedHostiles, 0); // Removes them from being visible