1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
623 B

Scriptname _00E_Gaboff_GrammophoneSC extends ObjectReference
Event OnUpdate()
bIsPlaying = False
EndEvent
Event OnActivate(ObjectReference akActionRef)
If !bIsPlaying
int iButton = _00E_Gaboff_GrammophoneMSG.Show()
if iButton == 0
bIsPlaying = True
PlayerREF.RemoveItem(Gold001, 5)
_00E_MUS_Special_OceansWidowM.Play(Self)
RegisterForSingleUpdate(160)
Else
Return
EndIf
EndIf
EndEvent
bool bIsPlaying
Actor Property PlayerREF Auto
MiscObject Property Gold001 Auto
Message Property _00E_Gaboff_GrammophoneMSG Auto
Sound Property _00E_MUS_Special_OceansWidowM Auto