03-24-2014, 04:54 PM
Hey guys,
So I was making a stone and a chipper combining puzzle, I have the inventory.hps:
The names in the inventory.hps and Level Editor are surely the same, I chcecked it like 10 times, and when I try to combine the hammer with chipper in-game it doesn't work.
The inventory.hps is ofc located in my maps folder.
Any thoughts on what is causing this problem? Any help will be appreciated.
So I was making a stone and a chipper combining puzzle, I have the inventory.hps:
PHP Code:
void OnGameStart()
{
AddCombineCallback("hammer_chipper", "hammer", "chipper", "hammer_chipper", false);
}
void hammer_chipper(string &in asItemA, string &in asItemB)
{
AddPlayerSanity(10);
PlayGuiSound("15_make_hammer", 1.0f);
RemoveItem(asItemA); RemoveItem(asItemB);
GiveItem("stone_hammer_chipper", "Puzzle", "stone_hammer_chipper", "stone_hammer_chipper.tga", 0);
}
The names in the inventory.hps and Level Editor are surely the same, I chcecked it like 10 times, and when I try to combine the hammer with chipper in-game it doesn't work.
The inventory.hps is ofc located in my maps folder.
Any thoughts on what is causing this problem? Any help will be appreciated.