Frictional Games Forum (read-only)
Script Not Loading or Not Working - 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 Not Loading or Not Working (/thread-11527.html)



Script Not Loading or Not Working - Deceptive - 11-27-2011

So I recently started a new map and have never had any previous problems before while doing this. Here is an example:

Code:
void onStart()
{
AddEntityCollideCallback("Player","ScriptArea_1","HallwayScare", true, 1);
}

void HallwayScare(string &in asParent, string &in asChild, int alState)
{
    SetPlayerCrouching(true);
}

void onEnter()
{

}

void onLeave()
{

}

The error/bug is that the script is not working/not loading. When I load the map and walk into the script it does not do anything.

Things I've Made Sure to Have Done:
- Both files have the same name: "Main.map" + "Main.hps"
- Re-Loaded Game
- Change Script Area Size


I know I'm new and haven't contributed anything but helpz pl0x<3 :3?


RE: Script Not Loading or Not Working - Your Computer - 11-27-2011

It's not onStart or onEnter or onLeave, it's OnStart, OnEnter and OnLeave.


RE: Script Not Loading or Not Working - Deceptive - 11-27-2011

(11-27-2011, 02:40 AM)Your Computer Wrote: It's not onStart or onEnter or onLeave, it's OnStart, OnEnter and OnLeave.
Thank you for helping<3 :3