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
Unlocking Level Doors with Item Pick-Up.
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#4
RE: Unlocking Level Doors with Item Pick-Up.

SetEntityPlayerInteractCallback("YOURITEM", "AfterPickUpLantern", true);
---
void AfterPickUpLantern(string &in asItem)
{
PlaySoundAtEntity("", "unlock_door", "YOURLEVELDOOR", 0, false);
SetLevelDoorLocked("YOURLEVELDOOR", false);
}

---*FOR SWINGDOOR*---
SetSwingDoorLocked("YOURSWINGDOOR", false, true);

Maybe this would work.
(This post was last modified: 09-14-2013, 03:01 PM by DnALANGE.)
09-14-2013, 02:38 PM
Find


Messages In This Thread
RE: Unlocking Level Doors with Item Pick-Up. - by DnALANGE - 09-14-2013, 02:38 PM



Users browsing this thread: 1 Guest(s)