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
Small script help please.
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#7
RE: Small script help please.

I just added it to the first part of the script (below the first timer) and I dont see anything changed. I havent ever used debug messages, so what do I do?

Here is the script:
void OnEnter ()
{
        AddEntityCollideCallback("Player", "DoorsScare", "HallwayScare", true, 1);
}
void HallwayScare(string &in asParent, string &in asChild, int alState)
{
        PlaySoundAtEntity("", "lurker_hit_Wood", "Player", 0, false);
        CreateParticleSystemAtEntity("", "ps_dust_impact", "DoorEffect1", false);    
        CreateParticleSystemAtEntity("", "ps_door_damage_wood", "DoorEffect1", false);
        CreateParticleSystemAtEntity("", "ps_dust_impact", "DoorEffect5", false);    
        CreateParticleSystemAtEntity("", "ps_door_damage_wood", "DoorEffect5", false);
        AddTimer("", 1, "Doors2");
        AddDebugMessage("Itworks", true);
}
void Doors2(string &in asTimer)
{
        PlaySoundAtEntity("", "lurker_hit_Wood", "Player", 0, false);
        CreateParticleSystemAtEntity("", "ps_dust_impact", "DoorEffect2", false);    
        CreateParticleSystemAtEntity("", "ps_door_damage_wood", "DoorEffect2", false);
        CreateParticleSystemAtEntity("", "ps_dust_impact", "DoorEffect6", false);
        CreateParticleSystemAtEntity("", "ps_door_damage_wood", "DoorEffect6", false);
        AddTimer("", 1, "Doors3");
}
void Doors3(string &in asTimer)
{
        PlaySoundAtEntity("", "lurker_hit_Wood", "Player", 0, false);
        CreateParticleSystemAtEntity("", "ps_dust_impact", "DoorEffect3", false);    
        CreateParticleSystemAtEntity("", "ps_door_damage_wood", "DoorEffect3", false);
        CreateParticleSystemAtEntity("", "ps_dust_impact", "DoorEffect7", false);
        CreateParticleSystemAtEntity("", "ps_door_damage_wood", "DoorEffect7", false);
}
void OnLeave ()
{
}

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

01-08-2012, 05:22 AM
Website Find


Messages In This Thread
Small script help please. - by JetlinerX - 01-08-2012, 04:28 AM
RE: Small script help please. - by flamez3 - 01-08-2012, 04:36 AM
RE: Small script help please. - by JetlinerX - 01-08-2012, 04:43 AM
RE: Small script help please. - by flamez3 - 01-08-2012, 04:46 AM
RE: Small script help please. - by JetlinerX - 01-08-2012, 04:49 AM
RE: Small script help please. - by flamez3 - 01-08-2012, 05:14 AM
RE: Small script help please. - by JetlinerX - 01-08-2012, 05:22 AM
RE: Small script help please. - by flamez3 - 01-08-2012, 06:00 AM
RE: Small script help please. - by JetlinerX - 01-08-2012, 06:13 AM
RE: Small script help please. - by Krymtel - 01-08-2012, 01:03 PM



Users browsing this thread: 2 Guest(s)