;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 7
Scriptname QF_KA_DragonFight_02101436 Extends Quest Hidden

;BEGIN ALIAS PROPERTY DRAGON
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_DRAGON Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY BonesMarker
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_BonesMarker Auto
;END ALIAS PROPERTY

;BEGIN ALIAS PROPERTY DragonPatrolMarker
;ALIAS PROPERTY TYPE ReferenceAlias
ReferenceAlias Property Alias_DragonPatrolMarker Auto
;END ALIAS PROPERTY

;BEGIN FRAGMENT Fragment_1
Function Fragment_1()
;BEGIN CODE
;Debug.MessageBox("The eagle has landed.")
DragonScene.Stop()
Alias_Dragon.GetActorRef().SetAllowFlying(false)
Game.EnablePlayerControls()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_6
Function Fragment_6()
;BEGIN CODE
;Debug.MessageBox("The Dragon is defeated!")
Alias_BonesMarker.getRef().Enable()
Alias_DragonPatrolMarker.getRef().Disable()
setstage(100)
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN CODE
;Diable controls
Game.DisablePlayerControls(abMovement = true, abFighting = true, abCamSwitch = true, \
  abLooking = false, abSneaking = false, abMenu = false, abActivate = true, abJournalTabs = false)
Game.ForceFirstPerson()
;Debug.MessageBox("He is coming.")
; Dragon spawn
Alias_Dragon.GetActorRef().Enable()
DragonScene.Start()
;END CODE
EndFunction
;END FRAGMENT

;BEGIN FRAGMENT Fragment_3
Function Fragment_3()
;BEGIN CODE
stop()
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

Scene Property DragonScene  Auto  
