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
#7
RE: Questions on scripts and script placement.

(08-17-2013, 04:27 AM)goregrinder99 Wrote: Item Interactions and Collide Callbacks should always be placed in OnStart?

As i said, that depends on what you want to accomplish. The functions used to set up callbacks tend to allow you to declare whether or not you want that callback to remain after triggering it. OnStart gets called once for each new session of the map. (Loading a save is not a new session, and so it doesn't get called then.) OnEnter gets called every time the map is loaded outside of saves. All of this means there is one point in time where OnStart and OnEnter are both called, but every other time only OnEnter would be called.

Tutorials: From Noob to Pro
08-17-2013, 04:49 AM
Website Find


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



Users browsing this thread: 1 Guest(s)