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
Work in progress Lights , cant get them to activate (noob)
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#3
RE: Lights , cant get them to activate (noob)

(04-17-2014, 03:39 PM)MacKetchup Wrote: AddEntityCollideCallback("Player", "ScriptArea_5", "Light", true , 1);

void Light(string &in asEntity)
{
SetEntityActive("torch_floor_1", true);
SetEntityActive("torch_floor_2", true);
SetEntityActive("torch_floor_3", true);
SetEntityActive("torch_floor_4", true);
}

Thanks on beforehand

Let me fix that for you:

AddEntityCollideCallback("Player", "ScriptArea_5", "Light", true, 1);

void Light(string &in asParent, string &in asChild, int alState)
{
SetLampLit("torch_floor_1", true, true);
SetLampLit("torch_floor_2", true, true);
SetLampLit("torch_floor_3", true, true);
SetLampLit("torch_floor_4", true, true);
}

You are using wrong function and wrong commands to make the lamps lit.

This should work.

“Life is a game, play it”
04-17-2014, 03:58 PM
Find


Messages In This Thread
RE: Lights , cant get them to activate (noob) - by HumiliatioN - 04-17-2014, 03:58 PM



Users browsing this thread: 1 Guest(s)