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
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#6
RE: getting a needle to unlock a door

(03-31-2012, 10:52 AM)SilentStriker Wrote:
(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);
works great thanks Smile

03-31-2012, 11:17 AM
Find


Messages In This Thread
RE: getting a needle to unlock a door - by zombiehacker595 - 03-31-2012, 11: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)