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
How i can reload script area when i die ? And how to create loopable sounds ?
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: How i can reload script area when i die ? And how to create loopable sounds ?

To do the baby thing the answer is TIMERS Wink

Put this inside a function:

AddTimer("", 60, "Baby_cry");
This means it takes 60 seconds before it calls the function "Baby_cry"


Then make the function:

void Baby_cry(string &in asTimer)
{
PlaySoundAtEntity("", "[BABYCRY SOUND]", "Player", 0.5f, false);

AddTimer("", 60, "Baby_cry");
}

See? I call the same timer inside the timerfunction. This means it will repeat doing this to infinity

Trying is the first step to success.
07-31-2012, 09:02 PM
Find


Messages In This Thread
RE: How i can reload script area when i die ? And how to create loopable sounds ? - by FlawlessHappiness - 07-31-2012, 09:02 PM



Users browsing this thread: 2 Guest(s)