Frictional Games Forum (read-only)

Full Version: How combine two Items?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Oh I forgot to
Post my Script


void Expoxy(string &in asItemA, string &in asItemB)
{
PlayGuiSound("12_epoxy_fill.snt", 1.0f);
RemoveItem("Chemie");
RemoveItem("Flasche");
GiveItem("Spreng", "chemical_container_half", "", "chemical_container_half.tga", 1);
}

void OnGameStart()
{
AddCombineCallback("", "Flasche", "Chemie", "Expoxy", false);
}
Code:
void OnGameStart()

Cool function. When is it called? Wink

i Replaced void OnGameStart()
with void OnStart()

But the result is the same


void Expoxy(string &in asItemA, string &in asItemB)
{
PlayGuiSound("12_epoxy_fill.snt", 1.0f);
RemoveItem("Chemie");
RemoveItem("Flasche");
GiveItem("Spreng", "chemical_container_half", "", "chemical_container_half.tga", 1);
}

void OnStart()
{
AddCombineCallback("", "Flasche", "Chemie", "Expoxy", false);
}
(04-06-2012, 01:55 PM)Cranky Old Man Wrote: [ -> ]
Code:
void OnGameStart()

Cool function. When is it called? Wink
void OnGameStart is only used in Inventory.hps


Don't capitalize the file name for inventory.hps. This may have issues on operating systems other than Windows.
Pages: 1 2