Jump to content

Look for a way to load scripts before starting the game


Recommended Posts

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.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use