enderalse/source/scripts/_00e_a0_myradflightaliasmyrad.psc

19 lines
680 B
Plaintext

scriptname _00E_A0_MyradFlightAliasMyrad extends ReferenceAlias
Actor property SelfRef auto hidden
Quest Property FlightControl auto
EVENT onActivate (objectReference akActionRef)
if akActionRef == game.getPlayer()
if (SELF.getRef() as actor).GetFlyingState() == 0 && (SELF.getRef() as actor).getSitState() == 0
game.DisablePlayerControls(abMovement = true, abFighting = true, abCamSwitch = true, \
abLooking = true, abSneaking = true, abMenu = true, abActivate = true, abJournalTabs = true)
(FlightControl as _00E_A0_MyradFlightControlQuest).MountMyrad()
else
debug.notification("Habt noch einen Augenblick Geduld...")
endif
endif
ENDevent