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
Script Help combination does not work?
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#1
combination does not work?



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



}
04-24-2012, 11:22 AM
Find
Dutton Offline
Member

Posts: 121
Threads: 3
Joined: Apr 2012
Reputation: 2
#2
RE: combination does not work?

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

EDIT: Have you tryed Editing?

void OnGameStart()

to

void OnStart()

[Image: 15isy6C]
(This post was last modified: 04-24-2012, 11:39 AM by Dutton.)
04-24-2012, 11:35 AM
Find
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#3
RE: combination does not work?

(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?

void OnGameStart()


to

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
(This post was last modified: 04-24-2012, 12:01 PM by zombiehacker595.)
04-24-2012, 11:54 AM
Find
Dutton Offline
Member

Posts: 121
Threads: 3
Joined: Apr 2012
Reputation: 2
#4
RE: combination does not work?

Hehe no problem! glad you figured it out Smile

[Image: 15isy6C]
04-24-2012, 12:30 PM
Find




Users browsing this thread: 1 Guest(s)