37 lines
958 B
Plaintext
37 lines
958 B
Plaintext
Scriptname _00E_Complex_PortNPCsForQuestSC extends ObjectReference
|
|
|
|
;=====================================================================================
|
|
; EVENTS
|
|
;=====================================================================================
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
if akActionRef == PlayerREF && !bDone
|
|
|
|
if QuestToSet.GetCurrentStageID() >= iStageMin && QuestToSet.GetCurrentStageID() <= iStageMax
|
|
|
|
bDone = True
|
|
Actor01Ref.MoveTo(PlayerREF)
|
|
Actor02Ref.MoveTo(PlayerREF)
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
;=====================================================================================
|
|
; PROPERTIES
|
|
;=====================================================================================
|
|
|
|
bool bDone
|
|
|
|
int Property iStageMin Auto
|
|
int Property iStageMax Auto
|
|
|
|
Quest Property QuestToSet Auto
|
|
|
|
Actor Property Actor01Ref Auto
|
|
Actor Property Actor02Ref Auto
|
|
Actor Property PlayerREF Auto
|