Frictional Games Forum (read-only)

Full Version: combination does not work?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.


so i added this to my inventory.hps file i have 3 working combinations all the same just different names in that file but this one doesnt seem to want to wrok any help?

//COMBINE TUBE//
////////////////////

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

////////////////////////////
// Run at the start of the game.
void OnGameStart()
{

/////NEEDLE & TUBE COMBO/////
AddCombineCallback("NEEDLE_TUBE", "copper_tube_1", "hollow_needle_1", "NEEDLE_TUBE", false);



}
is there something called OnGameStart? i thought the only 3 options was OnStart, OnEnter and OnLeave?

EDIT: Have you tryed Editing?

Code:
void OnGameStart()

to

Code:
void OnStart()
(04-24-2012, 11:35 AM)Dutton Wrote: [ -> ]is there something called OnGameStart? i thought the only 3 options was OnStart, OnEnter and OnLeave?

EDIT: Have you tryed Editing?

Code:
void OnGameStart()


to

Code:
void OnStart()

herp de derp i figured it out thanks for the help Smile and for the inventory.hps "ongamestart" is what you use i accidently added 2 to the one file Smile
Hehe no problem! glad you figured it out Smile