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
Area collide turning on torches problem.
Fetishman Offline
Junior Member

Posts: 42
Threads: 3
Joined: Aug 2011
Reputation: 7
#5
RE: Area collide turning on torches problem.

(08-25-2011, 06:28 AM)Phoroneus Wrote: You need to specify the "effects" part of your SetLampLit state. The syntax is
void SetLampLit(string& asName, bool abLit, bool abEffects);
so you want your code to look like this:
AddEntityCollideCallback("Player", "Areagruntactive", "LightFuction", true, 1);
void LightFunction(string &in asParent, string &in asChild, int alState)
{
    SetLampLit("greentorch1", true, false);
}
well i did try that, and i didn't get a fatal error, the only problem is, that now the light won't actually light. it stays unlit.
So what does the effects do exactly?
(This post was last modified: 08-25-2011, 06:38 AM by Fetishman.)
08-25-2011, 06:36 AM
Find


Messages In This Thread
RE: Area collide turning on torches problem. - by Fetishman - 08-25-2011, 06:36 AM



Users browsing this thread: 1 Guest(s)