My Amnesia is working bad, slower and slower, after I wrote new script.
void AmountOfHealth(string &in asTimer)
{
if(GetPlayerHealth() < 51.0f)
{
PlaySoundAtEntity("Player", "woman_breath.snt", "Player", 0, false);
AddTimer("", 3, "AmountOfHealth");
FadeSepiaColorTo(1,1);
}
if(GetPlayerHealth() > 51.0f)
{
AddTimer("", 3, "AmountOfHealth");
FadeSepiaColorTo(0,1);
}
if(GetPlayerSanity() < 45.0f)
{
AddTimer("", 3, "AmountOfHealth");
PlaySoundAtEntity("Player", "insanity_whispers.snt", "Player", 0, false);
}
if(GetPlayerSanity() > 45.0f)
{
AddTimer("", 3, "AmountOfHealth");
}
}
This script can slow down the PC productivity? I never seen a problem like this...
Memory Used 2.4 GB/ 4 GB Ram CPU Load from 20% to 70%
PS : Right now I found a trojan downloader in my pc, neutralised it, but problem is still here. Testing my mod, after 10 sec of game, game stops, then goes, and then freezes "Amnesia has stopped from working"