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
N00B needs help AGAIN
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#2
RE: N00B needs help AGAIN

(05-01-2011, 01:28 PM)X4anco Wrote: Hello I'm trying to make lamps go out when a player goes into an area but it doesn't work Sad (No errors)

AddEntityCollideCallback("Player", "ScriptArea_1", "Function01", true, 1);

. . .

void Function01(string &in asEntity)
{
SetEntityActive("candlestick01_1", false);
SetEntityActive("PointLight_1", false);
}
void OnStart()
{
AddEntityCollideCallback("Player", "LightsOut", "LightsOut", true, 1);
}
[...]

void LightsOut(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candles", false, false); //Lamp inactive
SetLightVisible("BoxLight_1", false); //Light inactive
}
Try that and see if it works, change the names to your correct ones, of course! Smile
(This post was last modified: 05-01-2011, 01:51 PM by Roenlond.)
05-01-2011, 01:51 PM
Find


Messages In This Thread
N00B needs help AGAIN - by X4anco - 05-01-2011, 01:28 PM
RE: N00B needs help AGAIN - by Roenlond - 05-01-2011, 01:51 PM
RE: N00B needs help AGAIN - by X4anco - 05-01-2011, 02:05 PM
RE: N00B needs help AGAIN - by Roenlond - 05-01-2011, 03:00 PM
RE: N00B needs help AGAIN - by X4anco - 05-01-2011, 09:43 PM
RE: N00B needs help AGAIN - by ricky horror - 05-02-2011, 12:11 AM



Users browsing this thread: 1 Guest(s)