Please help!!!! - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Please help!!!! (/thread-15766.html) |
Please help!!!! - P44RTHURN4X - 06-01-2012 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 RE: Please help!!!! - stonecutter - 06-01-2012 bool everytime means true or false ! RE: Please help!!!! - P44RTHURN4X - 06-01-2012 That's not right! with: void blabla(true) { scripts scripts } need another syntax! RE: Please help!!!! - Your Computer - 06-01-2012 You're mistaking definition with execution. RE: Please help!!!! - P44RTHURN4X - 06-01-2012 ok it's made! void blabla(string &in asTrue) { ... } thanks anyway RE: Please help!!!! - Your Computer - 06-01-2012 You'll be back. RE: Please help!!!! - P44RTHURN4X - 06-02-2012 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? RE: Please help!!!! - Your Computer - 06-02-2012 The syntax requires a boolean parameter. You have a string. RE: Please help!!!! - Stepper321 - 06-02-2012 The callback func is: MyFunc(bool abLit) so you have to USE MyFunc(bool abLit) |