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
#5
RE: Turning light on and off in trigger area?

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

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); }
}
Should work now

Perfect! Thank you very much! Now I'm just going to add sound to it as well!
05-08-2013, 08:56 PM
Find


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



Users browsing this thread: 1 Guest(s)