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
LAMP CALLBACK PLEASE HELP
Itskody Offline
Member

Posts: 100
Threads: 30
Joined: Mar 2011
Reputation: 1
#6
RE: LAMP CALLBACK PLEASE HELP

ok soo it would look like this?

void OnStart()
{
for(int n=1;n<3;n++) SetEntityPlayerInteractCallback("Lamp_01"+n, "LampLitCallback", true);
}

void LampLitCallback(string &in asEntity)
{AddLocalVarInt("3", 1); //Adds 1 each time a lamp is lit to the variable
if(GetLocalVarInt("3") == 3){//DO STUFF}
}



and that means that when 3 lights are lit it will trigger an effect?
09-18-2011, 04:28 PM
Find


Messages In This Thread
LAMP CALLBACK PLEASE HELP - by Itskody - 09-17-2011, 09:25 PM
RE: LAMP CALLBACK PLEASE HELP - by Elven - 09-17-2011, 09:33 PM
RE: LAMP CALLBACK PLEASE HELP - by Khyrpa - 09-17-2011, 09:43 PM
RE: LAMP CALLBACK PLEASE HELP - by Itskody - 09-18-2011, 05:30 AM
RE: LAMP CALLBACK PLEASE HELP - by Khyrpa - 09-18-2011, 10:30 AM
RE: LAMP CALLBACK PLEASE HELP - by Itskody - 09-18-2011, 04:28 PM
RE: LAMP CALLBACK PLEASE HELP - by Khyrpa - 09-18-2011, 04:42 PM



Users browsing this thread: 1 Guest(s)