2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_SetStageOnDeath extends Actor
|
|
|
|
{Update stage and objective on death}
|
|
|
|
|
|
|
|
Quest Property QuestToSet auto
|
|
|
|
int Property DesiredStage Auto
|
|
|
|
bool Property UpdateObjective Auto
|
|
|
|
int Property DesiredObjective Auto
|
|
|
|
bool Property CompleteObjective Auto
|
|
|
|
int Property DesiredCompletedOrFailedObjective Auto
|
|
|
|
bool Property FailObjective Auto
|
|
|
|
Scene Property SceneToStart Auto
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Event OnDeath(Actor akKiller)
|
|
|
|
|
|
|
|
if( QuestToSet )
|
2024-01-10 14:08:24 +00:00
|
|
|
QuestToSet.SetCurrentStageID(DesiredStage)
|
2021-10-05 22:15:58 +00:00
|
|
|
;Debug.Notification("Setting stage")
|
|
|
|
endif
|
|
|
|
|
|
|
|
if( SceneToStart )
|
|
|
|
SceneToStart.Start()
|
|
|
|
endif
|
|
|
|
|
|
|
|
if CompleteObjective == true
|
|
|
|
QuestToSet.SetObjectiveCompleted(DesiredCompletedOrFailedObjective)
|
|
|
|
elseif FailObjective == true
|
|
|
|
QuestToSet.SetObjectiveFailed(DesiredCompletedOrFailedObjective)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endEvent
|