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
Amnesia level editor setting monsters
GTalbot Offline
Junior Member

Posts: 3
Threads: 1
Joined: Jul 2011
Reputation: 0
#1
Amnesia level editor setting monsters

Iv'e recently started making a custom story for amnesia and ive starting having a bit of trouble. iv'e made doors unlock with keys and i made a monster also spawn when that door was unlocked but by accident i actually wanted to be able to open the door and walk down the hall to another room and upon walking into the room a monster spawn but it wasn't working this is my .hps script im only 16 and i started learning this stuff yesterday so if its totally wrong im sorry there isnt a tutorial for me to follow.

void OnStart()

{
AddUseItemCallback("", "key", "door", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door", false, true);
PlaySoundAtEntity("", "unlock_door", "door", 0, false);
RemoveItem("key");
}
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt", true);
AddEnemyPatrolNode("grunt", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("grunt", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("grunt", "PathNodeArea_3", 4, "");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}
07-17-2011, 09:22 PM
Find


Messages In This Thread
Amnesia level editor setting monsters - by GTalbot - 07-17-2011, 09:22 PM



Users browsing this thread: 1 Guest(s)