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
Make things play in a specific order?
Neatherblade Offline
Junior Member

Posts: 19
Threads: 5
Joined: Jan 2011
Reputation: 0
#1
Make things play in a specific order?

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
01-09-2011, 04:53 PM
Find


Messages In This Thread
Make things play in a specific order? - by Neatherblade - 01-09-2011, 04:53 PM



Users browsing this thread: 1 Guest(s)