![]() |
Questions - 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: Questions (/thread-25442.html) |
RE: UNEXPECTED ERROR - Romulator - 06-06-2014 What does your code look like right now? RE: UNEXPECTED ERROR - Mudbill - 06-06-2014 Did you edit onstart to instead be PHP Code: void OnStart() RE: UNEXPECTED ERROR - Amnesiaplayer - 06-06-2014 (06-06-2014, 05:11 PM)Romulator Wrote: What does your code look like right now? my Script : void Onstart () { AddEntityCollideCallback("Player", "Teleport", "jumpscare1", true, 1); } void jumpscare (string &in asParent, string &in asChild, int alState) { SetEntityActive("jumpscare1", true); AddPropForce("jumpscare1", -10000, 0, 0, "world"); PlaySoundAtEntity("", "24_iron_maiden.snt", "jumpscare1", 0, false); } (06-06-2014, 05:12 PM)Mudbill Wrote: Did you edit onstart to instead be Yes... it's with the Capital O RE: UNEXPECTED ERROR - Romulator - 06-06-2014 Fix your void or your callback, but only do one of these things ![]() PHP Code: AddEntityCollideCallback("Player", "Teleport", "jumpscare1", true, 1); OR PHP Code: void jumpscare (string &in asParent, string &in asChild, int alState) So it looks like: PHP Code: void jumpscare1(string &in asParent, string &in asChild, int alState) Edit: Also, make sure Onstart is actually spelt as OnStart() Edit2: What Mudbill (and I ( ![]() RE: UNEXPECTED ERROR - Amnesiaplayer - 06-06-2014 I did both the steps but it didn't work ;( and yes the () is there to.. RE: UNEXPECTED ERROR - Romulator - 06-06-2014 Is your script area in the map named Teleport, and is your flying naked fellow named "jumpscare1"? RE: UNEXPECTED ERROR - Amnesiaplayer - 06-06-2014 Yes it is! My area is a SCRIPT with the name Teleport ( WITH T as capital ) and my NAked guys name is As you say jumpscare1 Without Capital letters ( if this work i'm gonnamake more teleporting guys... but it doesn't work ;( RE: UNEXPECTED ERROR - Romulator - 06-06-2014 Try this code then. If it doesn't work, then I have no idea what is wrong... PHP Code: void OnStart() RE: UNEXPECTED ERROR - Amnesiaplayer - 06-06-2014 omg -_- IT doesn't WORK X_X but first ... i want to say of i did it good with the naked guy and area.. one thing i did on area is to change something to SCRIPT and keep it active.. and name it Teleport the only one thing i did with the naked guy.. is name him jumpscare1 and DEACTIVATE (remove the checkbox of Activate) and place the area in a small place... and the Naked guy ... a little far of the area like this A N (a=area n= naked guy) RE: UNEXPECTED ERROR - Neelke - 06-06-2014 Sorry got jinxed. |