The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
Small script help please.

I've been scripting for a while, and have no idea whats wrong. Am I a making a simple mistake here, and just over looking it because I am tired, or is there something wrong here? Here is my code, all areas, are named correctly.

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");
}
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, 04:28 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: 1 Guest(s)