Cruzore
Senior Member
Posts: 301
Threads: 2
Joined: Jun 2012
Reputation:
37
|
RE: [HELP] Script Enabling/Variables
I don't know if it works, but try this:
inside the JarTheKeg function, place this:
AddUseItemCallback("randomname3", "tinderbox_1", "Your furnace Name Here", "LightTheFire", true);
then, add this function somewhere:
void LightTheFire(string &in asItem, string &in asEntity)
{
AddUseItemCallback("randomname4", "jar", "Your furnace Name Here", "JarTheFire", true);
}
then, another function:
void JarTheFire(string &in asItem, string &in asEntity)
{
stuff you want to happen here.
}
However, I am not sure if it works like this with the tinderbox. I'm assuming by "checking if the furnace is on" you mean using a tinderbox on a unlit fireplace or something. If so, then this might work. You can also do this with a lever or something, but it's a different code then.
Think, before you speak Google, before you post
|
|
07-05-2012, 09:48 PM |
|