Difference between revisions of "OnPlayerLoadGame - Actor"
Jump to navigation
Jump to search
→Examples: Worth mentioning the GlobalVariable needs to be left valueless in the editor
imported>JustinOther m (→Examples) |
imported>JustinOther (→Examples: Worth mentioning the GlobalVariable needs to be left valueless in the editor) |
||
Line 22: | Line 22: | ||
endEvent | endEvent | ||
</source> | </source> | ||
*Say you need something to happen '''exactly''' once every time a save is loaded ''including'' the first and you're using a ReferenceAlias filled with the Player. In the below example with a "Start Game Enabled" quest, we maintain a GlobalVariable such that it will invariably reflect the version loaded. Use an OnInit event in the quest's script to catch the first save load... | *Say you need something to happen '''exactly''' once every time a save is loaded ''including'' the first and you're using a ReferenceAlias filled with the Player. In the below example with a "Start Game Enabled" quest, we maintain a GlobalVariable (valueless in editor) such that it will invariably reflect the version loaded. Use an OnInit event in the quest's script to catch the first save load... | ||
<source lang="papyrus">ScriptName YourQuestScript extends Quest | <source lang="papyrus">ScriptName YourQuestScript extends Quest | ||