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
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#5
RE: LAMP CALLBACK PLEASE HELP

Should be something similar to this

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

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


09-18-2011, 10:30 AM
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)