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
Another crashing hps.
candlejack131 Offline
Member

Posts: 209
Threads: 17
Joined: Oct 2011
Reputation: 2
#1
Another crashing hps.

I cant seem to find at all whats wrong with this hps ////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "SlenderMan", "slendy", true, 1);
SetEntityPlayerLookAtCallback("SlenderDude", "Kill", true);
AddUseItemCallback("", "key_laboratory_1", "mansion_6", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "DICKY", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "happynow", "kyle", true, 1);
AddEntityCollideCallback("Player", "script_slam", "func_slam", true, 1);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_6", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_6", 0, false);
RemoveItem("key_laboratory_1");
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
SetEntityActive("servant_grunt_2", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_12", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
}
void slendy(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("SlenderDude", true);
}

void Kill(string &in Entity, int alState)
{
GivePlayerDamage(100, "Slash", false, true);
}

void kyle(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("kyle_1", true);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_6", true, true);
}

SetSwingDoorClosed("door1", true, true);
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

I've looked over it several times and can't tell whats wrong.
10-05-2012, 10:15 PM
Find


Messages In This Thread
Another crashing hps. - by candlejack131 - 10-05-2012, 10:15 PM
RE: Another crashing hps. - by Adny - 10-05-2012, 10:18 PM
RE: Another crashing hps. - by The chaser - 10-05-2012, 10:44 PM
RE: Another crashing hps. - by candlejack131 - 10-06-2012, 03:21 AM
RE: Another crashing hps. - by candlejack131 - 10-05-2012, 11:03 PM
RE: Another crashing hps. - by Obliviator27 - 10-05-2012, 11:05 PM
RE: Another crashing hps. - by candlejack131 - 10-05-2012, 11:24 PM
RE: Another crashing hps. - by Rapture - 10-05-2012, 11:35 PM
RE: Another crashing hps. - by candlejack131 - 10-05-2012, 11:55 PM
RE: Another crashing hps. - by Statyk - 10-06-2012, 04:31 AM
RE: Another crashing hps. - by candlejack131 - 10-06-2012, 05:24 AM



Users browsing this thread: 1 Guest(s)