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
[Solved] Puzzle Script Problem?
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#5
RE: Puzzle Script Problem?

(07-27-2014, 05:09 AM)valetheimpaler Wrote: Mmm. You misunderstood, and I underdescribed. It uses examine areas for interaction to toggle their states, because they aren't quite... levers. However, I will take your advice and monitor the value of the variable. Thanks for your time.
You could just deactivate the examine area when you're done...

(07-27-2014, 02:07 AM)valetheimpaler Wrote: Oh, and secondly. When they're all pushed in I want to have another function run. What is the best way of doing that?

Call a new function. Name the function whatever you want and then after that put (); (refer to first code below). After that your function is basically done. For the callback, use the same function line but don't use the semi colon (refer to second code below). Below is an example (refer to last code).

Spoiler below!

FIRST
PHP Code: (Select All)
FUNCTIONNAME(); 

SECOND
PHP Code: (Select All)
void FUNCTIONNAME()
{
///whatever you want to do here let it be spawning a monster or a dildo


THIRD
PHP Code: (Select All)
void OnStart()
{
ExecCustFunc();
}

void ExecCustFunc()
{
//Execute shit!



"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 07-27-2014, 06:28 AM by PutraenusAlivius.)
07-27-2014, 06:27 AM
Find


Messages In This Thread
[Solved] Puzzle Script Problem? - by Vale - 07-27-2014, 02:07 AM
RE: Puzzle Script Problem? - by Daemian - 07-27-2014, 04:24 AM
RE: Puzzle Script Problem? - by Vale - 07-27-2014, 05:09 AM
RE: Puzzle Script Problem? - by PutraenusAlivius - 07-27-2014, 06:27 AM
RE: Puzzle Script Problem? - by Daemian - 07-27-2014, 05:29 AM
RE: Puzzle Script Problem? - by Mudbill - 07-27-2014, 06:29 AM
RE: Puzzle Script Problem? - by Vale - 07-27-2014, 02:05 PM



Users browsing this thread: 1 Guest(s)