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
Key Problem
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Key Problem

You didn't declare "cellar1", also the callback syntax was a bit screwy:


void OnStart()
{
AddUseItemCallback ("", "cellarkey", "cellar1", "Unlock1", true);
SetEntityCallbackFunc ("cellarkey,", "OnPickup");
}

void Unlock1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked ("cellar1", false, true);
PlaySoundAtEntity ("", "unlock_door", "cellar1", 0, false);
RemoveItem ("cellarkey");
}

I rate it 3 memes.
10-14-2012, 01:11 AM
Find


Messages In This Thread
Key Problem - by TheMadmaxster - 10-14-2012, 01:04 AM
RE: Key Problem - by Adny - 10-14-2012, 01:11 AM



Users browsing this thread: 1 Guest(s)