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
Candle's off!
anzki Offline
Member

Posts: 88
Threads: 6
Joined: Apr 2010
Reputation: 1
#5
RE: Candle's off!

Hmm... Still not working... Here's full code considering the candles or the key:
void OnStart()
{
    AddUseItemCallback("useexit1", "CookKey", "CookDoor", "UseKey1",true);
    SetEntityPlayerInteractCallback("CookKey", "CookKeyTaken", true);
}

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

void CookKeyTaken(string &in asEntity, string &in asType)
{
    SetLampLit("Candle_1", false, true);
    SetLampLit("Candle_2", false, true);
    SetLampLit("Candle_3", false, true);
}
Did I miss something?

[Image: 2qnr5av.png]
09-20-2010, 05:39 PM
Find


Messages In This Thread
Candle's off! - by anzki - 09-20-2010, 05:22 PM
RE: Candle's off! - by Pandemoneus - 09-20-2010, 05:24 PM
RE: Candle's off! - by anzki - 09-20-2010, 05:27 PM
RE: Candle's off! - by Thomas - 09-20-2010, 05:29 PM
RE: Candle's off! - by anzki - 09-20-2010, 05:39 PM
RE: Candle's off! - by Pandemoneus - 09-20-2010, 07:24 PM
RE: Candle's off! - by jens - 09-20-2010, 08:04 PM
RE: Candle's off! - by Pandemoneus - 09-20-2010, 08:53 PM
RE: Candle's off! - by Thomas - 09-20-2010, 08:40 PM
RE: Candle's off! - by anzki - 09-21-2010, 11:40 AM



Users browsing this thread: 1 Guest(s)