09-20-2014, 07:30 AM
Hello.
I have one problem,with my script.
There is no error found or anything but it just doesn't work...
I have one problem,with my script.
There is no error found or anything but it just doesn't work...
Spoiler below!
PHP Code:
void OnStart()
{
SetPlayerRunSpeedMul(0);
AddEntityCollideCallback("Player", "Look", "LookMonsterIsComming", true, 1);
}
void LookMonsterIsComming(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
StartPlayerLookAt("Billboard_1", 2, 25, "CallbackName");
AddTimer("", 5, "Monsters");
}
void Monsters(string &in asTimer)
{
SetEntityActive("Infected001", true);
AddTimer("", 3, "Monsters1");
}
void Monsters1(string &in asTimer)
{
SetEntityActive("Infected001", false);
AddTimer("", 3, "Monsters2");
}
void Monsters2(string &in asTimer)
{
SetEntityActive("Infected002", true);
AddTimer("", 3, "Monsters3");
}
void Monsters3(string &in asTimer)
{
SetEntityActive("Infected002", false);
AddTimer("", 3, "Monsters4");
}
void Monsters4(string &in asTimer)
{
SetEntityActive("Infected003", true);
AddTimer("", 3, "Monsters5");
}
void Monsters5(string &in asTimer)
{
SetEntityActive("Infected003", false);
AddTimer("", 3, "Monsters6");
}
void Monsters6(string &in asTimer)
{
SetEntityActive("Infected004", true);
AddTimer("", 3, "Monsters7");
}
void Monsters7(string &in asTimer)
{
SetEntityActive("Infected004", false);
AddTimer("", 3, "Monsters8");
}
void Monsters8(string &in asTimer)
{
SetEntityActive("Infected005", true);
AddTimer("", 3, "Monsters9");
}
void Monsters9(string &in asTimer)
{
SetEntityActive("Infected005", false);
AddTimer("", 3, "Monsters10");
}
void Monsters10(string &in asTimer)
{
SetEntityActive("Infected006", true);
AddTimer("", 3, "Monsters11");
}
void Monsters11(string &in asTimer)
{
SetEntityActive("Infected006", false);
AddTimer("", 3, "Monsters12");
}
void Monsters12(string &in asTimer)
{
SetEntityActive("Infected007", true);
StopPlayerLookAt();
SetPlayerActive(true);
}
}