Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Questions on scripts and script placement.
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#5
RE: Questions on scripts and script placement.

(08-17-2013, 02:42 AM)goregrinder99 Wrote: Still a little curious though... What majority of functions are used in the OnStart? I'm assuming all Callbacks, Variables and starting Player/Screen Effects (Say, for a wake-up). Any others?

Now, can all the callback syntax and other scripts like the Game Timers, Quests, Journals and whatever, aside from the obvious OnStart scripts and OnLeave scripts, be placed into the OnEnter function?

Playing music, preloading sounds and preloading particles should go in OnEnter.

Wake-up script should go in OnStart, unless you want it to repeat itself every time the player re-enters the map. Same goes for callbacks and map variables (i.e. variables declared with SetLocalVar* and SetGlobalVar*). But if you're just declaring map variables, then OnStart is the proper place.

You should note, though, that a callback can still loop if placed in OnStart, you just have to pay attention to how you set up your callbacks.

Tutorials: From Noob to Pro
08-17-2013, 03:11 AM
Website Find


Messages In This Thread
RE: Questions on scripts and script placement. - by Your Computer - 08-17-2013, 03:11 AM



Users browsing this thread: 1 Guest(s)