The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Script Not Loading or Not Working - by Deceptive - 11-27-2011, 02:01 AM



Users browsing this thread: 1 Guest(s)