Wolfpack49 Posted March 12, 2022 Share Posted March 12, 2022 So in looking at the OnInit function, it seems to be designed to only run once on script initialization and then nevermore. If you wanted to run a short script at the beginning of every load of the game, should OnInit be used at all? Just doing some testing with a debug message on game load and wondering what the right event would be. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted March 12, 2022 Share Posted March 12, 2022 If you want to run something at the start of every game, you will need a quest with a player alias record. On the player alias you would attach a script that uses the OnPlayerLoadGame event. You can use this event to trigger things on other scripts either by remotely accessing or by sending a mod event. The latter requires SKSE. More information:OnPlayerLoadGameSendModEvent Accessing Functions from other scripts Link to comment Share on other sites More sharing options...
Wolfpack49 Posted March 13, 2022 Author Share Posted March 13, 2022 Thank you -- OnPlayerLoadGame was exactly the event I was looking for. Don't know why I was having such trouble finding it, but there are a lot that would seem to apply. It's working perfectly now. Link to comment Share on other sites More sharing options...
Recommended Posts