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
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#5
RE: getting a needle to unlock a door

(03-31-2012, 10:17 AM)HollowRiku13 Wrote: 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.
or he can just write RemoveItem(asItem);


03-31-2012, 10:52 AM
Find


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



Users browsing this thread: 1 Guest(s)