The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Problem with lights?
Storfigge Offline
Member

Posts: 101
Threads: 31
Joined: Sep 2012
Reputation: 0
#1
Problem with lights?

Why won't this work?

void OnStart()
{
AddEntityCollideCallback("Player", "light", "LitLight", true, 1);
}

void LitLight(string &in asParent, string &in asChild, int alState)
{
SetLightVisible("altar_lamp_1", true);
SetLightVisible("altar_lamp_2", true);
SetLightVisible("altar_lamp_3", true);
SetLightVisible("altar_lamp_4", true);
}

void OnEnter()
{

}


void OnLeave()
{

}


I want the altar lamps to become lit.

02-03-2013, 08:44 PM
Find


Messages In This Thread
Problem with lights? - by Storfigge - 02-03-2013, 08:44 PM
RE: Problem with lights? - by Your Computer - 02-03-2013, 08:48 PM
RE: Problem with lights? - by Storfigge - 02-03-2013, 08:55 PM
RE: Problem with lights? - by NaxEla - 02-03-2013, 09:00 PM
RE: Problem with lights? - by Storfigge - 02-03-2013, 09:05 PM
RE: Problem with lights? - by NaxEla - 02-03-2013, 08:50 PM
RE: Problem with lights? - by NaxEla - 02-03-2013, 09:31 PM



Users browsing this thread: 1 Guest(s)