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 script isn´t working. Please help
Timotej Offline
Junior Member

Posts: 5
Threads: 2
Joined: Aug 2012
Reputation: 0
#1
Combining script isn´t working. Please help

Hey everyone
I am trying to make a script of combining an obsidian("rock") and a guiding rod ("stick") to make a hammer.
Unfortunately, the script isn´t working. Can you tell me where´s the problem?

My inventory.hps looks like this.


void OnStart()
{
AddCombineCallback("", "stick", "rock", "CombineFunc", true);
}
void CombineFunc(string &in asItemA, string &in asItemB)
{
PlayGuiSound("15_make_hammer", 1.0f);
RemoveItem("stick"); RemoveItem("rock");
GiveItem("stone_hammer", "Puzzle", "stone_hammer", "stone_hammer.tga", 0);
}
(This post was last modified: 08-09-2012, 10:01 PM by Timotej.)
08-09-2012, 08:58 PM
Find


Messages In This Thread
Combining script isn´t working. Please help - by Timotej - 08-09-2012, 08:58 PM



Users browsing this thread: 1 Guest(s)