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
Tinderbox inventory detection or Reset ignite property: I need one!
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#15
RE: Tinderbox inventory detection or Reset ignite property: I need one!

Ahh OK. Well SetLampLit("cannon", false, true); should work. Perhaps make a separate function in case there is an issue setting a lamp unlit as a result of it being lit (sounds strange haha).

void Ignite(string &in entity, string &in type)
{
if(type == "ignite") AddTimer("unlit", 0.01, "Unignite");
}

void Unignite(string &in timer)
{
SetLampLit("cannon", false, true);
}

or try this too:


void Ignite(string &in entity, string &in type)
{
if(type == "ignite") Unignite();
}

void Unignite();
{
SetLampLit("cannon", false, true);
}

(This post was last modified: 10-03-2011, 05:08 AM by palistov.)
10-03-2011, 05:07 AM
Find


Messages In This Thread
RE: Tinderbox inventory detection or Reset ignite property: I need one! - by palistov - 10-03-2011, 05:07 AM



Users browsing this thread: 1 Guest(s)