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
Major Scripting Error!!!
CookieSoup Offline
Junior Member

Posts: 5
Threads: 1
Joined: Aug 2011
Reputation: 0
#1
Exclamation  Major Scripting Error!!!

So I've been busy with the HPL Editor since yesterday. I created a little map and I have been working on a script for a couple of hours, but I can't get it to work!! As soon as I launch my map i get a fatal error...
Here's my script:

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea1", "CollideScriptArea1", true, 1);
}

void CollideScriptArea1(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_arched01_1", true, true);
SetPlayerLookAt("castle_arched01_1", 10.0f, 10.0f, "");
PlaySoundAtEntity("", "scare_breath.snt", "Player", 0, false);
AddTimer("", 1.0f, "stoplook");
}

void stoplook(string &in, asTimer)
{
PlayerStopLookAt();
}

-What's wrong with my code?!
-The game points out my faults, but I'm absolutely right i made no mistakes!! I added the error in a thumbnail.


Attached Files
.jpg   FATAL ERROR.jpg (Size: 23.33 KB / Downloads: 124)
08-16-2011, 03:50 PM
Find


Messages In This Thread
Major Scripting Error!!! - by CookieSoup - 08-16-2011, 03:50 PM
RE: Major Scripting Error!!! - by Your Computer - 08-16-2011, 03:59 PM
RE: Major Scripting Error!!! - by CookieSoup - 08-16-2011, 04:14 PM



Users browsing this thread: 1 Guest(s)