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
Trigger script when using any laudanum
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#8
RE: Trigger script when using any laudanum

(06-07-2012, 05:16 AM)Damascus Wrote: Hmm I'm very inexperienced with custom functions, but if I follow this guide, do I then have to follow it up with this?

void PlayerUsedPotion()
{
(the [buy some apples] i want to happen)
}
Yes, that should work.

Also, I recommend you start it in OnEnter() and stop the timer in OnLeave() if you are planning to have multiple levels. Do not have it start in OnEnter() AND OnStart() tho. I did a similar thing to make sanity more sensitive to things, and it didn't work as intended because I had the timer start in OnEnter() and OnStart().

Dark Seclusion Here
(This post was last modified: 06-07-2012, 07:52 AM by FragdaddyXXL.)
06-07-2012, 06:00 AM
Find


Messages In This Thread
RE: Trigger script when using any laudanum - by FragdaddyXXL - 06-07-2012, 06:00 AM



Users browsing this thread: 1 Guest(s)