Script fail - 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: Script fail (/thread-9543.html) Pages:
1
2
|
Script fail - Dizturbed - 08-01-2011 My code wont work :S Code: void OnStart() -Dizturbed RE: Script fail - Rapture - 08-01-2011 Code: AddEntityCollideCallback("Player", "HitDoor", "Creepy", true, 0); change the 0 to 1. RE: Script fail - Dizturbed - 08-01-2011 Nope.. Did not work : / RE: Script fail - Your Computer - 08-01-2011 Define "did not work." RE: Script fail - Dizturbed - 08-01-2011 It wont do anything, no errors, nothing, it just plays on like I haven't scripted at all. RE: Script fail - Your Computer - 08-01-2011 Is HitDoor an Area of type Script? RE: Script fail - Dizturbed - 08-01-2011 It's an Area RE: Script fail - Your Computer - 08-01-2011 (08-01-2011, 09:30 PM)Dizturbed Wrote: It's an Area ... of type Script? RE: Script fail - Rapture - 08-01-2011 Check the name of the Area and make sure it matches up with your script or just copy the entire thing and paste it into the script to be 100% sure. RE: Script fail - Apjjm - 08-01-2011 Try the following to debug your code. You want to look at the debug messages to see what is happening to the code. E.g if all 3 are showing up, then the error is in the function calls in the callback. If 2 are showing up somwhere in the callback an exception is being produced. If only 1 shows up then your collision callback isn't being triggered. If none show up, the hps file is not being loaded. Code: void OnStart() Remember, everything is case sensitive . |