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
Turning light on and off in trigger area?
Dominic0904 Offline
Member

Posts: 63
Threads: 14
Joined: Apr 2011
Reputation: 0
#3
RE: Turning light on and off in trigger area?

(05-08-2013, 08:17 PM)ClayPigeon Wrote:
AddEntityCollideCallback("Player", "wrong_door_area", "WrongDoor", false, 1);
AddEntityCollideCallback("Player", "wrong_door_area", "WrongDoor", false, -1);

void WrongDoor(string &in asParent, string &in asChild, int alState)
{
    if(alState == 1) {
    SetLightVisible("SpotLight_6", true); }
    else if(alState == -1) {
    SetLightVisible("SpotLight_6", false); }
}

That didn't work sadly, the light still turns on, but stays on when I walk around away from that area Sad.
05-08-2013, 08:47 PM
Find


Messages In This Thread
RE: Turning light on and off in trigger area? - by Dominic0904 - 05-08-2013, 08:47 PM



Users browsing this thread: 1 Guest(s)