2020-10-13 01:26:16 +00:00
|
|
|
Scriptname BRQuestPlayerAliasScript extends ReferenceAlias
|
|
|
|
|
2020-11-14 07:25:02 +00:00
|
|
|
Quest property BRQuest auto
|
2020-10-13 01:26:16 +00:00
|
|
|
Cell property BREmpty auto
|
|
|
|
|
|
|
|
event OnPlayerLoadGame()
|
|
|
|
Debug.Trace("Player load game")
|
2020-11-14 07:25:02 +00:00
|
|
|
BRQuestScript BRScript = BRQuest as BRQuestScript
|
|
|
|
BRScript.Maintenance()
|
2020-10-13 01:26:16 +00:00
|
|
|
Cell currentCell = self.GetReference().GetParentCell()
|
|
|
|
if currentCell == BREmpty
|
|
|
|
Debug.Trace("Player's loaded cell is BREmpty, resetting merch")
|
|
|
|
endif
|
|
|
|
endEvent
|
|
|
|
|
|
|
|
event OnCellLoad()
|
|
|
|
Debug.Trace("Player load cell")
|
|
|
|
Cell currentCell = self.GetReference().GetParentCell()
|
|
|
|
if currentCell == BREmpty
|
|
|
|
Debug.Trace("Player's loaded cell is BREmpty, resetting merch")
|
|
|
|
endif
|
|
|
|
endEvent
|