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 Adduseitem callback not working?
heyitsrobert97 Offline
Member

Posts: 68
Threads: 29
Joined: Jan 2012
Reputation: 0
#2
RE: Adduseitem callback not working?

need to make an internal name for the chemicals that you add

{
AddUseItemCallback("", "chemical_container_1", "epoxy_container02_1", "pickepoxy", true);
AddUseItemCallback("", "chemical_container_1", "epoxy_container02_2", "pickepoxy", true);
AddUseItemCallback("", "chemical_container_1", "epoxy_container02_3", "pickepoxy", true);
}

void pickepoxy(string &in asItem, string &in asEntity)
{
RemoveItem("chemical_container_1");
GiveItem("chemical_1", "chemical_container_epoxy_1", "", "chemical_container_epoxy.tga", 1.0f);
PlaySoundAtEntity("", "puzzle_acid_success.snt", "Player", 0, false);
AddUseItemCallback("", "chemical_1", "acid_container_1", "pickacid", true);
}

void pickacid(string &in asItem, string &in asEntity)
{
RemoveItem("chemical_container_epoxy_1");
GiveItem("finishedchemical", "chemical_container_full_1", "", "chemical_container_full.tga", 1.0f);
PlaySoundAtEntity("", "puzzle_acid_success.snt", "Player", 0, false);
}

Cleaned up Big Grin I saw your map on moddb it looks good Cool Check Out Mine http://www.moddb.com/mods/this-darn-house


This Darn House! , Four Doors, Youtube
(This post was last modified: 04-14-2012, 12:53 PM by heyitsrobert97.)
04-14-2012, 12:48 PM
Find


Messages In This Thread
RE: Adduseitem callback not working? - by heyitsrobert97 - 04-14-2012, 12:48 PM



Users browsing this thread: 1 Guest(s)