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
String of custom combinations
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#2
RE: String of custom combinations

The default names of the first "chemical_container.ent" and "chemical_container_epoxy.ent" are: "chemical_container_1" and "chemical_container_epoxy_1". Make sure that they are named with the same name in the level editor as what they are in your script.

void OnGameStart()
{

/////COMBOS/////
AddCombineCallback("salt_mixture", "chemical_container_1", "chemical_container_epoxy_1", "salt_mixture", true);
}

void salt_mixture(string &in asItemA, string &in asItemB)
{
PlayGuiSound("15_make_hammer", 1.0f);
GiveItem("salt_mixture", "chemical_container", "salt_mixture", "chemical_container.tga", 1);
}

You also scripted it so you would get a zero amount of this "salt_mixture".





03-10-2012, 05:45 PM
Find


Messages In This Thread
String of custom combinations - by Damascus - 03-10-2012, 06:26 AM
RE: String of custom combinations - by JMFStorm - 03-10-2012, 05:45 PM
RE: String of custom combinations - by Damascus - 03-11-2012, 01:14 AM



Users browsing this thread: 1 Guest(s)