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
Having issues w/ script
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#8
RE: Having issues w/ script

Can you try your code with these debug messages?
PHP Code: (Select All)
void OnStart()



AddEntityCollideCallback("Player""Start_Clock_Area""Clock_Event"false1);
AddDebugMessage"OnStart"false );
}

void Clock_Event(string &in asParentstring &in asChildint alState)
{
AddDebugMessage"Collision with Area"false );
if(
HasItem("item_screwdriver_2") == true)
{
AddDebugMessage"HasItem=true"false );
AddTimer(""0.1f"Useless_Timer");
PlaySoundAtEntity("""Clock_Chimes""clock_grandfather_2"0false);
}

}

void Useless_Timer(string &in asTimer)
{
RemoveEntityCollideCallback("Player""Start_Clock_Area");
AddDebugMessage"UselessTimer"false );


It's your same script with some debug messages.

12-15-2013, 11:54 PM
Find


Messages In This Thread
Having issues w/ script - by str4wberrypanic - 12-15-2013, 09:52 PM
RE: Having issues w/ script - by RaideX - 12-15-2013, 09:57 PM
RE: Having issues w/ script - by str4wberrypanic - 12-15-2013, 10:22 PM
RE: Having issues w/ script - by RaideX - 12-15-2013, 10:35 PM
RE: Having issues w/ script - by str4wberrypanic - 12-15-2013, 10:43 PM
RE: Having issues w/ script - by Daemian - 12-15-2013, 11:00 PM
RE: Having issues w/ script - by str4wberrypanic - 12-15-2013, 11:06 PM
RE: Having issues w/ script - by Daemian - 12-15-2013, 11:54 PM
RE: Having issues w/ script - by Romulator - 12-16-2013, 12:54 AM
RE: Having issues w/ script - by str4wberrypanic - 12-18-2013, 12:48 AM
RE: Having issues w/ script - by Traggey - 12-19-2013, 10:47 PM



Users browsing this thread: 1 Guest(s)