Shives
Member
Posts: 154
Threads: 41
Joined: Jan 2012
Reputation:
1
|
RE: How combine two Items?
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);
}
|
|
04-06-2012, 01:51 PM |
|
Cranky Old Man
Posting Freak
Posts: 986
Threads: 20
Joined: Apr 2012
Reputation:
38
|
RE: How combine two Items?
Cool function. When is it called?
|
|
04-06-2012, 01:55 PM |
|
Shives
Member
Posts: 154
Threads: 41
Joined: Jan 2012
Reputation:
1
|
RE: How combine two Items?
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, 02:06 PM |
|
SilentStriker
Posting Freak
Posts: 950
Threads: 26
Joined: Jul 2011
Reputation:
43
|
RE: How combine two Items?
(04-06-2012, 01:55 PM)Cranky Old Man Wrote:
Cool function. When is it called? void OnGameStart is only used in Inventory.hps
|
|
04-06-2012, 03:54 PM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
RE: How combine two Items?
Don't capitalize the file name for inventory.hps. This may have issues on operating systems other than Windows.
|
|
04-06-2012, 05:32 PM |
|