Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Not Loading or Not Working
Deceptive Offline
Junior Member

Posts: 6
Threads: 3
Joined: Nov 2011
Reputation: 0
#1
Script Not Loading or Not Working

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

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?
(This post was last modified: 11-27-2011, 02:43 AM by Deceptive.)
11-27-2011, 02:01 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Script Not Loading or Not Working

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

Tutorials: From Noob to Pro
11-27-2011, 02:40 AM
Website Find
Deceptive Offline
Junior Member

Posts: 6
Threads: 3
Joined: Nov 2011
Reputation: 0
#3
RE: Script Not Loading or Not Working

(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
11-27-2011, 02:43 AM
Find




Users browsing this thread: 1 Guest(s)