Frictional Games Forum (read-only)

Full Version: Script Not Loading or Not Working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
It's not onStart or onEnter or onLeave, it's OnStart, OnEnter and OnLeave.
(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