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
Plank Doesn't Work ?
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#1
Plank Doesn't Work ?

i already saw a QUESTION on the forum of someone that asked this.. how to do a place.. when you go there the plank will break and you will fall...
i tried this but it doesn't work! i think my hps file is good to ?

PHP Code: (Select All)
void OnLeave()
{

}

void OnStart()
{
AddUseItemCallback("""sleutel1""deur1""UsedKeyOnDoor"true);
AddEntityCollideCallback("Player""BreakingArea""BoardCreak"true1);
}

void UsedKeyOnDoor (string &in asItemstring &in asEntity)
{
SetSwingDoorLocked("deur1"falsetrue); 
PlaySoundAtEntity("""unlock_door.snt""deur1"0false);
RemoveItem("sleutel1");


void BoardCreak(string&in asParentstring &in asChildint alState)
{
PlaySoundAtEntity("WoodCreaking""CREAKINGNOISE.snt""BreakingArea"0.15ffalse);
AddTimer("ImFaaaalling"3.34f"StartFalling");
}

void StartFalling(string &in asTimer)
{
SetPropHealth("Board"0);


This is my hps file.. and if you see , my plank name is BoardCreak and my area name is BreakingArea ...
06-27-2014, 10:40 AM
Find


Messages In This Thread
Plank Doesn't Work ? - by Amnesiaplayer - 06-27-2014, 10:40 AM
RE: Plank Doesn't Work ? - by Neelke - 06-27-2014, 10:46 AM
RE: Plank Doesn't Work ? - by Amnesiaplayer - 06-27-2014, 10:47 AM
RE: Plank Doesn't Work ? - by Neelke - 06-27-2014, 10:59 AM
RE: Plank Doesn't Work ? - by Amnesiaplayer - 06-27-2014, 10:59 AM
RE: Plank Doesn't Work ? - by Neelke - 06-27-2014, 11:08 AM
RE: Plank Doesn't Work ? - by Amnesiaplayer - 06-27-2014, 11:10 AM
RE: Plank Doesn't Work ? - by Neelke - 06-27-2014, 11:57 AM
RE: Plank Doesn't Work ? - by Amnesiaplayer - 06-27-2014, 12:10 PM
RE: Plank Doesn't Work ? - by DnALANGE - 06-27-2014, 12:04 PM
RE: Plank Doesn't Work ? - by Radical Batz - 06-27-2014, 12:06 PM
RE: Plank Doesn't Work ? - by DnALANGE - 06-27-2014, 12:13 PM
RE: Plank Doesn't Work ? - by Radical Batz - 06-27-2014, 12:17 PM



Users browsing this thread: 3 Guest(s)