Difference between revisions of "OnPlayerLoadGame - Actor"
Jump to navigation
Jump to search
no edit summary
imported>DreamKing m |
imported>JLundin |
||
Line 4: | Line 4: | ||
'''Member of:''' [[Actor Script]] ''(Requires 1.6)'' | '''Member of:''' [[Actor Script]] ''(Requires 1.6)'' | ||
Event | Event called when the player loads a save game. This event is '''only''' sent to the player actor. If this is the first save game load where the event is being listened to, and the event is on an alias, and the alias didn't exist at the time the save was made, then the player won't be in the alias by the time the event is sent, and the alias script will not receive the event. It should then receive later events. | ||
== Syntax == | == Syntax == | ||
Line 10: | Line 10: | ||
Event OnPlayerLoadGame() | Event OnPlayerLoadGame() | ||
</source> | </source> | ||
== Parameters == | |||
None. | |||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Event is only sent to the player actor. This would probably be on a magic effect or alias script | |||
Event OnPlayerLoadGame() | Event OnPlayerLoadGame() | ||
Debug.Trace(" | Debug.Trace("player loaded a save, do some fancy stuff") | ||
endEvent | |||
</source> | </source> | ||
== Notes == | |||
This event is only sent to the player actor. It is recommended that you handle this event via an alias the player is forced into, or a magic effect on the player. | |||
== See Also == | == See Also == | ||
*[[Actor Script]] | *[[Actor Script]] |