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
Catalyst Offline
Member

Posts: 213
Threads: 32
Joined: Aug 2014
Reputation: 3
#5
RE: Sanity script problem

(10-19-2014, 11:51 AM)DnALANGE Wrote: 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

}
}

Thank you Smile

Egypt CS
[Image: 27003.png]
10-19-2014, 11:52 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: 1 Guest(s)