08-13-2011, 10:58 PM
void OnStart()
{
AddUseItemCallback("", "holywater", "ScriptArea_2", "HolyWaterFunc", true);
}
void HolyWaterFunc(string &in asItem, string &in asEntity)
{
SetEntityActive("bucketcharged", true);
RemoveItem("holywater");
SetEntityActive("ScriptArea_1", true);
}
I'm 99% sure the script is purrfectly fine, its mainly the item i'm using in the script: "holywater". I want to use it on a script area but "the combination doesn't work" so I'm wondering how I can bypass this. thanks
{
AddUseItemCallback("", "holywater", "ScriptArea_2", "HolyWaterFunc", true);
}
void HolyWaterFunc(string &in asItem, string &in asEntity)
{
SetEntityActive("bucketcharged", true);
RemoveItem("holywater");
SetEntityActive("ScriptArea_1", true);
}
I'm 99% sure the script is purrfectly fine, its mainly the item i'm using in the script: "holywater". I want to use it on a script area but "the combination doesn't work" so I'm wondering how I can bypass this. thanks