(11-08-2011, 06:57 PM)proshitness Wrote: I want to do it so when the player walks in the corridor the lamps \ torchs \ candles turn off, what more can i elaborate...?
you can either set a fog in the corridor or you can place a script area in the corridor and run a script in the .hps so that when the player walks into that area, the lamps shut off (or dim. just change values in the script).
possible script:
//_____________________
void OnStart()
{
AddEntityCollideCallback("Player", "SCRIPT_AREA_NAME", "LampsOff_func", true, 1); //this is the area collide
}
void LampsOff_func(string &in asParent, string &in asChild, int alState)
{
SetLampLit("LAMPNAME_1", false);
SetLampLit("LAMPNAME_2", false);
SetLampLit("LAMPNAME_3", false);
//And so-on with each lamp you want to shut off.
}
//__________________________________
Each phrase/word in there that is capitalized, just change to the names of its correspondence.