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
Problem with combining items
Mofo Offline
Member

Posts: 71
Threads: 4
Joined: Sep 2010
Reputation: 2
#3
RE: Problem with combining items

(09-20-2010, 01:43 AM)MulleDK19 Wrote: Well, did you actually add a callback?

I did, here's the code inside my custom story hps:


void OnStart()
{
AddCombineCallback("hammerandkey", "key_laboratory_1", "stone_hammer_1", "CombineHammerAndKey", false);
}


void CombineHammerAndKey(string &in asItemA, string &in asItemB)
{
PlayGuiSound("15_make_hammer", 1.0f);

RemoveItem(asItemA); RemoveItem(asItemB);

GiveItem("straightened_key", "Puzzle", "straightened_key", "key_laboratory.tga", 0);
}
09-20-2010, 02:00 AM
Find


Messages In This Thread
Problem with combining items - by Mofo - 09-20-2010, 01:35 AM
RE: Problem with combining items - by MulleDK19 - 09-20-2010, 01:43 AM
RE: Problem with combining items - by Mofo - 09-20-2010, 02:00 AM
RE: Problem with combining items - by jens - 09-20-2010, 08:01 AM
RE: Problem with combining items - by Mofo - 09-20-2010, 11:57 AM
RE: Problem with combining items - by house - 02-03-2011, 12:44 AM
RE: Problem with combining items - by Mofo - 02-03-2011, 03:42 AM
RE: Problem with combining items - by house - 02-03-2011, 03:59 PM



Users browsing this thread: 1 Guest(s)