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
Candle fade
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: Candle fade

(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.
11-08-2011, 07:05 PM
Find


Messages In This Thread
Candle fade - by proshitness - 11-08-2011, 06:23 PM
RE: Candle fade - by Statyk - 11-08-2011, 06:53 PM
RE: Candle fade - by proshitness - 11-08-2011, 06:57 PM
RE: Candle fade - by Statyk - 11-08-2011, 07:05 PM
RE: Candle fade - by Khyrpa - 11-08-2011, 07:43 PM
RE: Candle fade - by proshitness - 11-08-2011, 07:48 PM
RE: Candle fade - by Statyk - 11-09-2011, 12:31 AM
RE: Candle fade - by Khyrpa - 11-08-2011, 07:51 PM
RE: Candle fade - by proshitness - 11-08-2011, 07:59 PM
RE: Candle fade - by proshitness - 11-09-2011, 08:06 AM
RE: Candle fade - by Your Computer - 11-09-2011, 01:51 PM
RE: Candle fade - by proshitness - 11-09-2011, 02:00 PM
RE: Candle fade - by Your Computer - 11-09-2011, 02:26 PM
RE: Candle fade - by proshitness - 11-09-2011, 02:49 PM
RE: Candle fade - by Your Computer - 11-09-2011, 03:47 PM
RE: Candle fade - by proshitness - 11-09-2011, 03:47 PM
RE: Candle fade - by Statyk - 11-09-2011, 09:58 PM
RE: Candle fade - by proshitness - 11-09-2011, 10:06 PM
RE: Candle fade - by Statyk - 11-09-2011, 10:12 PM
RE: Candle fade - by proshitness - 11-09-2011, 10:23 PM



Users browsing this thread: 1 Guest(s)