https://sureai.net/forum/viewtopic.php?t=2755

SCN NQ15W02EnemyScript
Short State
Float Timer
Float DeathTimer
Short DeathTime
Begin OnActivate
Return
End
Begin OnDeath
PlaySound "SPLAlterationHit"
PlaySound "NQ15EnemyDeathSound01"
Set State to 1
Disable
Resurrect
End
Begin GameMode
if ( State == 1 ) && ( GetDisabled == 1 )
Set Timer to Timer + GetSecondsPassed
if ( Timer >= 1 )
Enable
Set State to 0
Set Timer to 0
MoveTo "NQ15W02EnemyReturnMarkerRef"
endif
elseif ( State == 1 ) && ( GetDisabled == 0 )
Set State to 0
Set Timer to 0
endif
if ( NQ15W02.GameStarted == 0 ) && (State == 0 )
MoveTo "NQ15W02EnemyReturnMarkerRef"
endif
if ( State != 1 )
if ( GetDistance, Player <= 470 ) && ( NQ15W02.GameStarted == 1 )
Message "Zieht Euch zurück!"
endif
if ( GetDistance, Player <= 200 ) && ( NQ15W02.GameStarted == 1 )
Player.Kill
endif
endif
End
; Wave 16 !!!!!!!!!!!!!!!!!! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
if ( StartEnemyRushState == 32 )
Set NQ15W02.Wave16 to 1
PlaySound "AABoese03"
NQ15W02EnemyEndBossRef.SetAV Health 25000
NQ15W02EnemyEndBossRef.SetAV Speed 12
if ( NQ15W02EnemyEndBossRef.GetDisabled == 1 )
NQ15W02EnemyEndBossRef.Enable
endif
NQ15W02EnemyEndBossRef.MoveTo "NQ15W02EnemyEnterMarkerRef"
Set RemainingSec to 0
Set StartEnemyRushState to 33
elseif ( GetDeadCount "NQ15W02EnemyEndBoss" == NQ15W02.NeededEnemyDeath16Count +1) && ( StartEnemyRushState == 33 ) ; GameWonif remainingSec > 0
message "Noch %.0f Sekunden, bis die 2. Gegnerwelle eintrifft!", remainingSec, 1
else