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
Need help coding for key to work on door
ryan51695 Offline
Junior Member

Posts: 3
Threads: 1
Joined: Mar 2012
Reputation: 0
#1
Need help coding for key to work on door

okay so the lang file is good, but the test.hps file must be wrong. This is what i have so far


//===========================================
// Starter's Script File!
//===========================================

//===========================================
// This runs when the map first starts
void OnStart()
{
AddUseItemCallback("", "door_key", "hallway_door", "UsedKeyOnDoor", true);
}

void MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("hallway_door", false, true);
PlaySoundAtEntity("", "unlock_door", "hallway_door", 0, false);
RemoveItem("door_key");
}
//===========================================
// This runs when the player enters the map
void OnEnter()
{
}

//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}





if anyone could help me get my key to work on the door id appreciate it Smile thanks!
03-20-2012, 09:26 PM
Find


Messages In This Thread
Need help coding for key to work on door - by ryan51695 - 03-20-2012, 09:26 PM



Users browsing this thread: 1 Guest(s)