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
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#3
RE: lamp question

(07-15-2011, 11:32 PM)Kyle Wrote: 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:
- snip -
Well to remedy that I would suggest doing it this way.

Select the entity you want the function to be triggered on and then go into the entity tab. In the "Callback Func" box write a function name, my example will be "IgniteLamp1"

Now, in your .hps file, place this not inside any of the main functions...

void IgniteLamp1(string &in asEntityName, string &in asType)
     {
          if(asType=="OnIgnite") {
                SetLampLit("Lamp2", true, false);
                SetLampLit("Lamp3", true, false);
            }
     }

When you are done with that, go to every lamp you want lit and place in the "Callback Func" box the same function name. Of course you'll need to edit the correct names and such Smile

Insanity. Static.
(This post was last modified: 07-16-2011, 02:15 AM by Juby.)
07-16-2011, 02:12 AM
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)