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

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#7
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);
Technically he could just write


SetLevelDoorLocked(asEntity , false);

PlaySoundAtEntity("", "unlock_door", "asEntity", 0, false); c:

03-31-2012, 04:41 PM
Find


Messages In This Thread
RE: getting a needle to unlock a door - by flamez3 - 03-31-2012, 04:41 PM
RE: getting a needle to unlock a door - by Iyiyt - 08-07-2012, 11:57 PM



Users browsing this thread: 1 Guest(s)