Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help getting a needle to unlock a door
HollowRiku13 Offline
Member

Posts: 93
Threads: 15
Joined: Dec 2011
Reputation: 2
#3
RE: getting a needle to unlock a door


void OnStart()
{
AddUseItemCallback("", "Nameofyourneedle", "Nameofyourdoor", "Needle", true);
}


void Needle(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("nameofyourdoor", false);
PlaySoundAtEntity("", "unlock_door", "nameofyourdoor", 0, false);
RemoveItem("nameofyourneedle");
}

I hope it works, sorry if it's kinda rushed, I'm in a hurry.
03-31-2012, 10:17 AM
Find


Messages In This Thread
RE: getting a needle to unlock a door - by HollowRiku13 - 03-31-2012, 10:17 AM
RE: getting a needle to unlock a door - by Iyiyt - 08-07-2012, 11:57 PM



Users browsing this thread: 1 Guest(s)