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
Door set to locked, but unlocked?
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Door set to locked, but unlocked?

(08-01-2011, 08:23 PM)Asaratha Wrote: I didn't, it is set to locked in the level editor.

I know that, but it seems i should have checked your code for more than syntax and function parameter errors. The code logic seems to be wrong.

void KeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("keydoor_1", false, true);
    PlaySoundAtEntity("", "unlock_door", "keydoor_1", 0, false);
    RemoveItem("key_1");
    SetSwingDoorLocked("keydoor_2", false, true);
    PlaySoundAtEntity("", "unlock_door", "keydoor_2", 0, false);
    RemoveItem("key_2");
}

So you want both doors to open at the same time when opening either door?


Tutorials: From Noob to Pro
08-01-2011, 08:41 PM
Website Find


Messages In This Thread
Door set to locked, but unlocked? - by Asaratha - 08-01-2011, 04:23 PM
RE: Door set to locked, but unlocked? - by Your Computer - 08-01-2011, 08:41 PM



Users browsing this thread: 1 Guest(s)