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 Door set to locked, still unlocked.
Asaratha Offline
Junior Member

Posts: 14
Threads: 5
Joined: Jul 2011
Reputation: 0
#1
Door set to locked, still unlocked.

Hello again.

I have a door in my level called "sewer_arched_2", it is set to "Locked" in the Entity tab.

I also have a script for a hollow needle on the door:


void OnStart()
{
AddUseItemCallback("", "hollow_needle_1", "sewer_arched_2", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("sewer_arched_2", false, true);
PlaySoundAtEntity("", "unlock_door", "sewer_arched_2", 0, false);
RemoveItem("hollow_needle_1");
}
Any other script I have currently is working, as well as another key I have put in the "KeyOnDoor" function. If you would like to see my entire .hps file, I'll PM it to you.

03-15-2012, 02:28 PM
Find


Messages In This Thread
Door set to locked, still unlocked. - by Asaratha - 03-15-2012, 02:28 PM



Users browsing this thread: 1 Guest(s)