Frictional Games Forum (read-only)

Full Version: Please help!!!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
bool everytime means true or false !
That's not right!

with:

void blabla(true)
{
scripts
scripts
}

need another syntax!
You're mistaking definition with execution.
ok it's made!

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


thanks anyway
You'll be back.
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?
The syntax requires a boolean parameter. You have a string.
The callback func is:
MyFunc(bool abLit) so you have to USE
MyFunc(bool abLit)