The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Break boards with hammer and chipper
Storfigge Offline
Member

Posts: 101
Threads: 31
Joined: Sep 2012
Reputation: 0
#1
Break boards with hammer and chipper

I've made a hammer and a chipper which is located on different maps. Once you have them both you combine them and are suppose to break some boards(wooden_boards_block) covering a door. What am I suppose to write to make this happen? Also I have made an inventory.hps which the hammer and chipper code is in

void hammer_chipper(string &in asItemA, string &in asItemB)
{
PlayGuiSound("15_make_hammer", 1.0f);
RemoveItem(asItemA); RemoveItem(asItemB);
GiveItem("stone_hammer_chipper", "Puzzle", "stone_hammer_chipper", "stone_hammer_chipper.tga", 0);
}



void OnGameStart()
{



AddCombineCallback("hammer_chipper", "stone_hammer_1", "stone_chipper_1", "hammer_chipper", false);

Thanks.

12-14-2012, 05:12 PM
Find


Messages In This Thread
Break boards with hammer and chipper - by Storfigge - 12-14-2012, 05:12 PM



Users browsing this thread: 1 Guest(s)