(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