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
lamp question
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: lamp question

Yes, but you'll have to record if they have a tinderbox or not when they click on it.

You could simply have this, except it might not always work:

void OnStart()
{
     SetEntityPlayerInteractCallback("Lamp_1", "Func01", true);
}
void Func01(string &in asEntity)
{
     SetLightVisible("Lamp_2", true);
     SetLightVisible("Lamp_3", true);
}

Lamp_1 is the name of the candle or light that the player lights with a tinderbox and Lamp_2 and Lamp_3 are the ones that get set lit after you light Lamp_1. You can add many as you would like to it, but like I said, it won't completely work if the player touches the lamp without a tinderbox.

(This post was last modified: 07-16-2011, 12:05 AM by Kyle.)
07-15-2011, 11:32 PM
Find


Messages In This Thread
lamp question - by Danny Boy - 07-15-2011, 11:26 PM
RE: lamp question - by Kyle - 07-15-2011, 11:32 PM
RE: lamp question - by Juby - 07-16-2011, 02:12 AM



Users browsing this thread: 1 Guest(s)