GoreGrinder99
Member
Posts: 166
Threads: 47
Joined: Feb 2013
Reputation:
1
|
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 |
|