Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I - disable all hints/turn on lights with a switch?
GoreGrinder99 Offline
Member

Posts: 166
Threads: 47
Joined: Feb 2013
Reputation: 1
#5
RE: How do I - disable all hints/turn on lights with a switch?

(08-05-2013, 08:29 AM)Smoke Wrote: Oh, you want to lit/unlit a lamp?

Use this:
SetLampLit(string& asName, bool abLit, bool abEffects);

This is what it looks like now and now it's crashing again with the same error before but on more lines.

void OnStart()
{
SetLocalVarInt("candlestick_wall_1", 1);
SetEntityPlayerInteractCallback("lever_nice01_1", "LightsFunction", false);
}


void LightsFunction(string &in asEntity)
{
if(GetLocalVarInt("candlestick_wall_1")==0)
{
SetLampLit("candlestick_wall_1", true, "");
AddLocalVarInt("candlestick_wall_1", 1);
}
else if(GetLocalVarInt("candlestick_wall_1")==1)
{
SetLampLit("candlestick_wall_1", false, "");
AddLocalVarInt("candlestick_wall_1", -1);
}
}

-Grind to the Gore-
08-05-2013, 08:32 AM
Find


Messages In This Thread
RE: How do I - disable all hints/turn on lights with a switch? - by GoreGrinder99 - 08-05-2013, 08:32 AM



Users browsing this thread: 1 Guest(s)