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
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#2
RE: Combining script isn´t working. Please help

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);
}


void OnLeave()
{
}


This should work, if not, try looking into your leveleditor for typos or capital letters.
what exactly isn't working? Can you be a little more specific?

[Image: 25F7U37.png]
08-09-2012, 10:47 PM
Website Find


Messages In This Thread
RE: Combining script isn´t working. Please help - by Melvin - 08-09-2012, 10:47 PM



Users browsing this thread: 1 Guest(s)