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
Please help!!!!
P44RTHURN4X Offline
Junior Member

Posts: 35
Threads: 16
Joined: Apr 2012
Reputation: 0
#1
Please help!!!!

I need help! I am making some new test script-maps and I don't know the right syntaxtype for the script:

SetLanternLitCallback("blabla");
}

...

void blabla(???????)
{
script
script
script
}

In the Games Wiki is that:
void SetLanternLitCallback(string& asCallback);

Sets the function to call when the player uses his lantern.
Callback syntax: MyFunc(bool abLit)

What is bool abLit? true/false? Or Lit/NotLit?
Pleeeeeease help quickly!



GReeZe' P44
06-01-2012, 07:38 PM
Find
stonecutter Offline
Member

Posts: 140
Threads: 17
Joined: Feb 2011
Reputation: 4
#2
RE: Please help!!!!

bool everytime means true or false !

We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
06-01-2012, 07:39 PM
Find
P44RTHURN4X Offline
Junior Member

Posts: 35
Threads: 16
Joined: Apr 2012
Reputation: 0
#3
RE: Please help!!!!

That's not right!

with:

void blabla(true)
{
scripts
scripts
}

need another syntax!
06-01-2012, 07:48 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Please help!!!!

You're mistaking definition with execution.

Tutorials: From Noob to Pro
06-01-2012, 07:56 PM
Website Find
P44RTHURN4X Offline
Junior Member

Posts: 35
Threads: 16
Joined: Apr 2012
Reputation: 0
#5
RE: Please help!!!!

ok it's made!

void blabla(string &in asTrue)
{
...
}


thanks anyway
06-01-2012, 07:59 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: Please help!!!!

You'll be back.

Tutorials: From Noob to Pro
06-01-2012, 08:06 PM
Website Find
P44RTHURN4X Offline
Junior Member

Posts: 35
Threads: 16
Joined: Apr 2012
Reputation: 0
#7
RE: Please help!!!!

Yes, ehm it doesn't work!
I tried yet:

void blabla(string &in asTrue)
{
...
}

and

void blabla(string &in asFalse)
{
...
}

Both does not work! What now?
06-02-2012, 12:48 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#8
RE: Please help!!!!

The syntax requires a boolean parameter. You have a string.

Tutorials: From Noob to Pro
06-02-2012, 01:07 PM
Website Find
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#9
RE: Please help!!!!

The callback func is:
MyFunc(bool abLit) so you have to USE
MyFunc(bool abLit)

Signature to awesome to be displayed.
06-02-2012, 01:27 PM
Find




Users browsing this thread: 2 Guest(s)