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
Level Editor Help Locked door
nathanmcb Offline
Junior Member

Posts: 18
Threads: 6
Joined: Jun 2012
Reputation: 0
#1
Locked door

Can you help me with the script for the key and a locked door.
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "HU2key_1", "HUdoor", "UsedKeyOnDoor", true);
}

void UsedHU2key_1(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("HUdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "HUdoor", 0, false);
RemoveItem("HU2key_1");

That is the script. What am I doing wrong? Sad
06-17-2012, 04:36 AM
Find


Messages In This Thread
Locked door - by nathanmcb - 06-17-2012, 04:36 AM
RE: Locked door - by Obliviator27 - 06-17-2012, 04:38 AM
RE: Locked door - by nathanmcb - 06-17-2012, 04:53 AM



Users browsing this thread: 1 Guest(s)