01-09-2011, 04:53 PM
I want this to play
void OnStart()
{
AddEntityCollideCallback("Player", "scary_trigger", "ScaryTriggerFunc", true, 1);
}
void ScaryTriggerFunc(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("look_blood", 4, 2, "");
AddTimer("", 2.5f, "ScaryMoment");
PlayGuiSound("react_scare.snt", 100); <------------ play this first
GiveSanityDamage(25, true);
StartPlayerLookAt("look_stair", 4, 2, "");
PlayGuiSound("react_breath_slow.snt", 100); <------------ play this seconde
PlayGuiSound("notice.snt", 40);
StartScreenShake(0.1f, 2, 0.2f, 1);
StartPlayerLookAt("look_monster", 4, 2, "");
AddTimer("", 2.5f, "ScaryMoment");
PlayGuiSound("react_pant.snt", 100); <------------ play this last
GiveSanityDamage(15, true);
}
At the moment it jumps to the last one
void OnStart()
{
AddEntityCollideCallback("Player", "scary_trigger", "ScaryTriggerFunc", true, 1);
}
void ScaryTriggerFunc(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("look_blood", 4, 2, "");
AddTimer("", 2.5f, "ScaryMoment");
PlayGuiSound("react_scare.snt", 100); <------------ play this first
GiveSanityDamage(25, true);
StartPlayerLookAt("look_stair", 4, 2, "");
PlayGuiSound("react_breath_slow.snt", 100); <------------ play this seconde
PlayGuiSound("notice.snt", 40);
StartScreenShake(0.1f, 2, 0.2f, 1);
StartPlayerLookAt("look_monster", 4, 2, "");
AddTimer("", 2.5f, "ScaryMoment");
PlayGuiSound("react_pant.snt", 100); <------------ play this last
GiveSanityDamage(15, true);
}
At the moment it jumps to the last one