enderalse/source/scripts/_00e_mq07b_beaconpartssc.psc

33 lines
1.1 KiB
Plaintext
Raw Normal View History

Scriptname _00E_MQ07b_BeaconPartsSC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnInit()
Self.BlockActivation(True)
EndEvent
Event OnActivate(ObjectReference akActionRef)
2024-01-10 14:08:24 +00:00
If akActionRef == PlayerREF && MQ07b.GetCurrentStageID() == 135 && !bDone
bDone = True
MQ07b.SetObjectiveCompleted(100 + iVisionIndex)
MQ07b.PlayVisionVoice(iVisionIndex, Self)
Self.Activate(PlayerREF, true)
2024-01-10 14:08:24 +00:00
Elseif akActionRef == PlayerREF && MQ07b.GetCurrentStageID() >= 135
Self.Activate(PlayerREF, true)
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
bool bDone
int Property iVisionIndex Auto
Actor Property PlayerREF Auto
_00E_MQ07b_Questfunctions Property MQ07b Auto