Difference between revisions of "OnPlayerLoadGame - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>DreamKing
m
imported>DreamKing
Line 13: Line 13:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
Scriptname xyzPlayerAliasScript extends ReferenceAlias
Event OnPlayerLoadGame()
Event OnPlayerLoadGame()
   Debug.Trace("The player has loaded a saved game.")
   Debug.Trace("The player has loaded a saved game.")

Revision as of 22:45, 14 June 2012

Member of: Actor Script

Event introduced by the 1.6 Skyrim update that is received when the player loads a saved game. Seems to only be received when actually attached to the player character (e.g., in a script attached to a Reference Alias set to be filled by the player). Is not received the first time a script is loaded, when a mod is first activated; only on subsequent loads.

Syntax

Event OnPlayerLoadGame()

Examples

Scriptname xyzPlayerAliasScript extends ReferenceAlias

Event OnPlayerLoadGame()
  Debug.Trace("The player has loaded a saved game.")
EndEvent

See Also