(02-22-2012, 06:15 PM)Unearthlybrutal Wrote: Timer's syntax is (string &in asTimer),
and not (string &in asParent, string &in asChild, int alState).
What?
void StopPlayerLook(string &in asTimer)
{
StopPlayerLookAt();
}
void ResetPlayer(string &in asTimer)
{
SetPlayerActive(true);
}
void girlstopcry(string &in asTimer)
{
StopSound(asTimer, 1.0);
}
void girlcry_1(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_2", 0, false);
}
void girlcry_2(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_3", 0, false);
}
void girlcry_3(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_4", 0, false);
}
These are the only timers?
void girlcry(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_1");
AddTimer("", 3, "girlstopcry");
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_2", 2, 2, "");
SetPlayerActive(false);
}
void girlcry1(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_2");
AddTimer("", 3, "girlstopcry");
SetPlayerActive(false);
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_3", 2, 2, "");
}
void girlcry2(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_3");
AddTimer("", 3, "girlstopcry");
SetPlayerActive(false);
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_4", 2, 2, "");
}
Points to
AddEntityCollideCallback("Player", "lyd_1", "girlcry", true, 1);
AddEntityCollideCallback("Player", "lyd_2", "girlcry1", true, 1);
AddEntityCollideCallback("Player", "lyd_3", "girlcry2", true, 1);