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
un-lit one lamp = un-lit all others
DIGI Byte Offline
Senior Member

Posts: 376
Threads: 20
Joined: Dec 2010
Reputation: 1
#8
RE: un-lit one lamp = un-lit all others

try this

void OnStart()
{
AddEntityCollideCallback("Player", "torch_trigger", "BloodTorchoff1", true, 1);
}

void BloodTorchoff1(string &in asParent, string &in asChild, in alState)
{
SetLampLit("blood_torch_*", false, true);
}


any lamp starting with blood_torch_ will turn off, if you have duplicates that you don't want to turn off, I suggest changing their names in the level editor
(This post was last modified: 01-12-2011, 08:29 AM by DIGI Byte.)
01-12-2011, 08:26 AM
Find


Messages In This Thread
un-lit one lamp = un-lit all others - by Tony32 - 01-11-2011, 07:06 PM
RE: un-lit one lamp = un-lit all others - by DIGI Byte - 01-12-2011, 08:26 AM



Users browsing this thread: 1 Guest(s)