Page 1 of 1

Sandbox -> Script on Start

Posted: 22 May 2018, 17:56
by JesterX
Hello all,

I'm trying Sandbox for the first time and I like the concept a LOT

However, do anyone of you know how to launch a script at game start?

Re: Sandbox -> Script on Start

Posted: 24 May 2018, 10:15
by Een
JesterX wrote: I'm trying Sandbox for the first time and I like the concept a LOT
Glad about that :)
JesterX wrote: However, do anyone of you know how to launch a script at game start?
If you take a look at the examples, you can see in the scripts how to define states for the game with a "postSetup" script executed with the first state.