Lizard
Member
Posts: 174
Threads: 23
Joined: Jul 2012
Reputation:
5
|
Can't use my acid on web
Hi guys.
I've used AddUseItemCallback many times before, with no errors, but this time it just wont work, and i can't really see why.
I keep getting "Cannot use item this way"
Im hoping that you guys would help me a little
void OnEnter()
{
AddUseItemCallback("", "glass_container_1", "acid_container_1", "giveacid", true);
AddUseItemCallback("", "glass_container_mix_done", "web_1", "burnweb", true);
}
void giveacid(string &in asItem, string &in asEntity)
{
RemoveItem("glass_container_1");
GiveItem("", "glass_container_mix_done", "glasscontainermixdone", "glass_container_mix_done.tga", 1);
}
void burnweb(string &in asItem, string &in asEntity)
{
SetPropHealth("web_1", 0);
}
I've also checked for name errors
I've also tryed, to change name of the container used in the burnweb function "glass_container_mix_done" to "glass_container_mix_done_1"
CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 10-04-2012, 03:08 PM by Lizard.)
|
|
10-04-2012, 12:09 PM |
|