Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[HELP] Script Enabling/Variables
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#19
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
Find


Messages In This Thread
RE: [HELP] Script Enabling? - by SilentStriker - 07-01-2012, 09:05 AM
RE: [HELP] Script Enabling? - by Ongka - 07-01-2012, 10:12 AM
RE: [HELP] Script Enabling? - by JMFStorm - 07-01-2012, 12:28 PM
RE: [HELP] Script Enabling? - by Your Computer - 07-01-2012, 03:03 PM
RE: [HELP] Script Enabling? - by himynamebob1 - 07-03-2012, 08:47 PM
RE: [HELP] Script Enabling? - by Cruzore - 07-03-2012, 09:05 PM
RE: [HELP] Script Enabling? - by himynamebob1 - 07-03-2012, 09:20 PM
RE: [HELP] Script Enabling? - by himynamebob1 - 07-04-2012, 04:56 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-04-2012, 09:31 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-04-2012, 09:49 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-05-2012, 12:15 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-05-2012, 09:41 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-05-2012, 09:48 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-05-2012, 10:14 PM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-06-2012, 01:39 AM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-06-2012, 09:21 AM
RE: [HELP] Script Enabling/Variables - by Cruzore - 07-06-2012, 08:58 PM



Users browsing this thread: 7 Guest(s)