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
Need help, again :P
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#23
RE: Need help, again :P

(10-27-2012, 12:17 AM)Zaapeer Wrote: Okay guys, I gave it a shot, and here's what my script looks like now, it doesn't work though.. Could you correct it? Smile


void OnStart()
{
if(GetLocalVarInt("Var_coals")==1)
{
PlayMusic("10_puzzle01.ogg", false, 0.7, 0.1, 10, false);
SetLightVisible("hanging_lantern_ceiling_chain_2", false);
}
AddEntityCollideCallback("Coal_1", "CoalArea", "CoalFunc", true, 1); //CoalArea is the area in the furnace
}

void CoalFunc(string &in asParent, string &in asChild, int alState)
{
AddLocalVarInt("Var_coals", 1);
}

I'm just trying with one peice of coal right now, just to make it work. Please help! Smile
You were putting the var in the void OnStart. It should be like this:


void OnStart()
{
AddEntityCollideCallback("Coal_1", "CoalArea", "CoalFunc", true, 1); //CoalArea is the area in the furnace
}

void CoalFunc(string &in asParent, string &in asChild, int alState)
{
AddLocalVarInt("Var_coals", 1);
FURNACE();
}


void FURNACE()
if(GetLocalVarInt("Var_coals")==1)
{
PlayMusic("10_puzzle01.ogg", false, 0.7, 0.1, 10, false);
SetLightVisible("hanging_lantern_ceiling_chain_2", false);
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-27-2012, 08:24 PM
Find


Messages In This Thread
Need help, again :P - by Zaapeer - 10-25-2012, 03:08 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 03:12 PM
RE: Need help, again :P - by Zaapeer - 10-25-2012, 03:29 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 04:27 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 06:48 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 08:23 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 08:51 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 09:27 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 10:17 PM
RE: Need help, again :P - by FlawlessHappiness - 10-25-2012, 10:49 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 11:21 PM
RE: Need help, again :P - by The chaser - 10-26-2012, 06:44 AM
RE: Need help, again :P - by FlawlessHappiness - 10-26-2012, 07:01 AM
RE: Need help, again :P - by The chaser - 10-26-2012, 09:45 AM
RE: Need help, again :P - by FlawlessHappiness - 10-26-2012, 10:59 AM
RE: Need help, again :P - by Melvin - 10-26-2012, 11:13 AM
RE: Need help, again :P - by The chaser - 10-26-2012, 11:25 AM
RE: Need help, again :P - by ZodiaC - 10-26-2012, 01:25 PM
RE: Need help, again :P - by The chaser - 10-26-2012, 02:00 PM
RE: Need help, again :P - by ZodiaC - 10-26-2012, 02:32 PM
RE: Need help, again :P - by The chaser - 10-26-2012, 04:41 PM
RE: Need help, again :P - by Zaapeer - 10-27-2012, 12:17 AM
RE: Need help, again :P - by The chaser - 10-27-2012, 08:24 PM



Users browsing this thread: 5 Guest(s)