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
Whats wrong with this script!? D:
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#1
Whats wrong with this script!? D:

Hi.

When I try entering "mansionentrance.map" I get fatal error. Sad

Can anybody see whats wrong with my script???

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Cleaned", "NeedsCleaning", true, 1);
AddEntityCollideCallback("Player", "Patrol", "GoPath", true, 1);
AddEntityCollideCallback("Grunt1", "DisappearArea", "Disappear", true, 1);
}

void NeedsCleaning(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("Cleaned", "react_breath1.ogg", "Player", 0.0, false);
SetMessage("JohnatanThoughts", "Thought9", 0);
}

void GoPath(string &in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode(Grunt1, PathNodeArea_1, 0.0f, "");
}

void Disappear(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Grunt1",false);
}

////////////////////////////
// Run when entering map
void OnEnter()
{
PlayMusic("01_amb_darkness.ogg", true, 1, 3, 0, true);
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
03-21-2011, 05:49 PM
Find


Messages In This Thread
Whats wrong with this script!? D: - by Henriksen - 03-21-2011, 05:49 PM
RE: Whats wrong with this script!? D: - by jens - 03-21-2011, 05:56 PM



Users browsing this thread: 1 Guest(s)