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
Could not load script file: The same names and parameters! HELP
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#1
Could not load script file: The same names and parameters! HELP

I am new at scripting and in HPL. Can anyone tell me, where the same names and parameters are?

void OnStart()
{
AddEntityCollideCallback("Player", "Scary_Area_1", "Scary_1", true, 1);
AddEntityCollideCallback("Player", "Scary_Area_2", "Scary_2", true, 1);
}

void Scary1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("1", true);
SetEntityActive("2", true);
SetEntityActive("3", true);
SetEntityActive("4", true);
SetEntityActive("5", true);
SetEntityActive("6", true);
SetEntityActive("7", true);
SetEntityActive("8", true);
SetEntityActive("9", true);
SetEntityActive("10", true);
SetEntityActive("11", true);
SetEntityActive("12", true);
GiveSanityDamage(5.0f, true);
}

void Scary1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("corpse_male_4", false);
AddTimer("", 3.8f, "Timer_1");    
}

void Timer_1(string &in asTimer)
{
    SetEntityActive("corpse_male_4", true);
     AddPropImpulse("corpse_male_4", 0, 0, -10, "world");
     GiveSanityDamage(5.0f, true);
}















////////////////////////////
// Run when leaving map
void OnLeave()
{
07-07-2012, 05:30 PM
Find


Messages In This Thread
Could not load script file: The same names and parameters! HELP - by ooadrianoo - 07-07-2012, 05:30 PM



Users browsing this thread: 1 Guest(s)