'== included in the AI scripts file =='
s.controller.vars.init("inert", 1)

'warp destabilized?
If s.armour <= 0 Then s.dropOnDeath = 0

'start the warp countdown (should have been set before this, but just in Case...)
s.controller.vars.init("warptime", 1000)

'count down the warp timer
s.controller.vars.set("warptime", s.controller.vars.get("warptime") - 20)

'time To warp? (will drop warped s on death)
If (s.controller.vars.get("warptime") <= 0)
	
	'(no points if completed warp)
	s.drop_points = False
	'do damage to dropped stuff
	For Local warped:Ship = EachIn s.dropList
		warped.damage(s.stat.armour - s.armour)
	Next
		
	s.armour = 0
	
	playLocationalSFX(getSound("game_warp.wav"), stageChannel, s.x, s.y)
EndIf

'don't move
s.speed = 0
