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
Script Help Item from other Level
Knittel Offline
Junior Member

Posts: 8
Threads: 1
Joined: Apr 2012
Reputation: 0
#1
Item from other Level

Hello everyone,

I have a small problem in my Amnesia Custom Story. I have placed a Hammer (name = "TheHammer") in TheEntry.map and I want to use it to open an door in Hall.map.



My Script: Hall.hps
void OnStart()  
{

AddUseItemCallback("", "TheHammer", "CellarDoor", "DestroyDoor", true);[...]

}



void DestroyDoor ()  

{
SetMessage("Messages", "A11_Door", 0);
PlaySoundAtEntity("", "break_wood.snt", "Player", 0, false);
SetSwingDoorLocked("CellarDoor", false, false);
AddPlayerSanity(8);
}







The Problem is: Nothing happens when I use the Hammer on the Door. When I use it a 2nd time it says "This item is useless for this situation".
I hope you can help me.
Thanks in advance.



[Image: 2ZwH0ZGD0AwL2.png]
[TRACKMANIA]


04-11-2012, 03:06 PM
Find


Messages In This Thread
Item from other Level - by Knittel - 04-11-2012, 03:06 PM
RE: Item from other Level - by Rapture - 04-11-2012, 03:18 PM
RE: Item from other Level - by Cranky Old Man - 04-11-2012, 03:52 PM



Users browsing this thread: 1 Guest(s)