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
Combining Problem
amusei Offline
Junior Member

Posts: 23
Threads: 8
Joined: Aug 2012
Reputation: 2
#1
Exclamation  Combining Problem

Hi, guys.
I have a problem with combining my hammer and chipper. First, let me tell you how the player gets them since that may be the problem. So in one of the map he takes the hammer(named hammer_1) from a desk and then uses it to destroy some wooden boards. Then he enters the door to the other map. There he finds the chipper(named stone_chipper_1) but then when I try to combine them it says "combination doesn't work".
Here is my inventory.hps script
void OnGameStart()
{
    AddCombineCallback("hammer_chipper", "hammer_1", "stone_chipper_1", "HammerChipperFunc", false);
}

void HammerChipperFunc(string &in asItemA, string &in asItemB)
{
    PlayGuiSound("15_make_hammer", 1.0f);
    RemoveItem(asItemA);
    RemoveItem(asItemB);
    GiveItem("stone_hammer_chipper", "stone_hammer_chipper", "", "stone_hammer_chipper.tga", 1);
}
Thanks in advance Smile
(This post was last modified: 01-21-2013, 05:00 PM by amusei.)
01-21-2013, 01:39 PM
Find


Messages In This Thread
Combining Problem - by amusei - 01-21-2013, 01:39 PM
RE: Combining Problem - by The chaser - 01-21-2013, 01:59 PM
RE: Combining Problem - by amusei - 01-21-2013, 02:06 PM
RE: Combining Problem - by The chaser - 01-21-2013, 02:18 PM
RE: Combining Problem - by amusei - 01-21-2013, 04:09 PM



Users browsing this thread: 1 Guest(s)