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
[SOLVED]Sanity script problem
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#4
RE: Sanity script problem

void OnStart()
{
AddTimer("", 1, "AmountOfSanity");
}

void AmountOfSanity(string &in asTimer)
{
if(GetPlayerSanity() < 100.0f)
{
PlaySoundAtEntity("Player", "insanity_whisper.snt", "Player", 0, false);
PlaySoundAtEntity("Player", "insanity_baby_cry.snt", "Player", 0, false);

AddTimer("", 10, "AmountOfSanity");// <-- This timer will LOOP your timer-script every 10 seconds -> AmountOfSanity

}
}
10-19-2014, 11:51 AM
Find


Messages In This Thread
[SOLVED]Sanity script problem - by Catalyst - 10-18-2014, 06:44 PM
RE: Sanity script problem - by DnALANGE - 10-18-2014, 08:16 PM
RE: Sanity script problem - by Catalyst - 10-19-2014, 10:08 AM
RE: Sanity script problem - by DnALANGE - 10-19-2014, 11:51 AM
RE: Sanity script problem - by Catalyst - 10-19-2014, 11:52 AM



Users browsing this thread: 2 Guest(s)