Jump to content

Look for a way to load scripts before starting the game


Recommended Posts

Posted

hi,

 

I'm looking for a way to load scripts before or shortly after the game starts

 

I once had a mod that you could call up a small round room with a chair and a door with console commands. There, the scripts loaded, and you could also test mods. Then you could go back into the game.

Posted

There are various options.

Scripts are loaded depending on where they are attached to.

For example on actors the scripts are loaded as soon the actor is loaded and rendered the first time.

 

For quests and ref aliases the script is loaded as soon the quest is running.

 

If you want some script to run immediately, create a quest, make it starting at game start, add a ref alias, set it to the player, and implement the method OnPlayerLoadGame.

 

The code will be executed as soon the game is loaded.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...