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
Help with a script file? :)
lbrosious96 Offline
Junior Member

Posts: 4
Threads: 4
Joined: Jun 2012
Reputation: 0
#1
Help with a script file? :)

So i know a lot of amnesia custom stories have things jumping out at them, like random objects or entities jumping out at them after they pick up a crowbar (in the CS: Can't Remember).

So, I have one of those iron maiden things, with the metal head and the wooden body, with spikes inside named 'monstercontain'. It works perfect, I have a HPS file that i am using (below) uses a key with that door, amongst others. I want, when the player opens the door to it to have a monster to spawn behind them, say 10-15 meters.

My HPS file (ask if you need anything else). Also, do you have a different HPS file per level you have in your story? Thanks <3

void OnStart()
{
AddUseItemCallback("", "monsterdoorkey_1", "monsterdoor", "UsedKeyOnDoor", true);
AddUseItemCallback("", "irondoor_key", "irondoor", "UsedKeyOnDoor", true);
AddUseItemCallback("", "monstercontain_key", "monstercontain", "UsedKeyOnDoor", true);
AddUseItemCallback("", "02_key", "02_door", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}
06-30-2012, 12:30 AM
Find


Messages In This Thread
Help with a script file? :) - by lbrosious96 - 06-30-2012, 12:30 AM
RE: Help with a script file? :) - by Cruzore - 06-30-2012, 12:41 AM
RE: Help with a script file? :) - by ApeCake - 06-30-2012, 08:14 PM



Users browsing this thread: 1 Guest(s)