The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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?
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#1
Adduseitem callback not working?


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

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

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

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

ok the script above is from my lab.map and it works pefectly but below when i try to mix the epoxy

with the acid container on my kitchen.map it wont work did i do anything wrong here



AddUseItemCallback("", "chemical_container_epoxy_1", "acid_container_1", "pickacid", true);
}

void pickacid(string &in asItem, string &in asEntity)
{
RemoveItem("chemical_container_epoxy_1");
GiveItem("", "chemical_container_full_1", "", "chemical_container_full.tga", 1.0f);
PlaySoundAtEntity("", "puzzle_acid_success.snt", "Player", 0, false);
}
(This post was last modified: 04-14-2012, 10:02 AM by zombiehacker595.)
04-14-2012, 09:53 AM
Find


Messages In This Thread
Adduseitem callback not working? - by zombiehacker595 - 04-14-2012, 09:53 AM



Users browsing this thread: 2 Guest(s)