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.
Phoroneus Offline
Member

Posts: 141
Threads: 12
Joined: Feb 2011
Reputation: 0
#4
RE: Area collide turning on torches problem.

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);
}


[Image: at_9365860.png]

Follow Harvest.
08-25-2011, 06:28 AM
Find


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



Users browsing this thread: 1 Guest(s)