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
lock door help
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#2
RE: lock door help

(04-06-2011, 06:27 AM)Itskody Wrote: I have a locked level door, but i cant use my key on it to unlock it, here is my script for it..
PHP Code: (Select All)
void OnStart()
{
    
AddUseItemCallback("""key_tower_1""door_2""UsedKeyUpstairs"true);
}

void UsedKeyUpstairs(string &in asItemstring &in asEntity)
{
    
SetLevelDoorLocked("door_2",false);
    
PlaySoundAtEntity("""unlock_door""door_2"0false);
    
RemoveItem("key_tower_1");
    
SetLevelDoorLockedText("door_2""Levels""Upstairs");

Is something wrong here?

The doors you're trying to unlock are level doors? Not swing doors?

04-06-2011, 06:37 AM
Find


Messages In This Thread
lock door help - by Itskody - 04-06-2011, 06:27 AM
RE: lock door help - by Russ Money - 04-06-2011, 06:37 AM
RE: lock door help - by Itskody - 04-06-2011, 06:37 AM
RE: lock door help - by Russ Money - 04-06-2011, 06:40 AM
RE: lock door help - by Itskody - 04-06-2011, 06:43 AM
RE: lock door help - by Russ Money - 04-06-2011, 06:48 AM
RE: lock door help - by Itskody - 04-06-2011, 06:55 AM
RE: lock door help - by Russ Money - 04-06-2011, 07:22 AM



Users browsing this thread: 1 Guest(s)