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)
MacKetchup Offline
Junior Member

Posts: 25
Threads: 10
Joined: Apr 2013
Reputation: 0
#4
RE: Lights , cant get them to activate (noob)

(04-17-2014, 03:58 PM)HumiliatioN Wrote:
(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.

Thanks for the help Big Grin appreciate the fast help
04-17-2014, 03:59 PM
Find


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



Users browsing this thread: 1 Guest(s)