Hi, I'm currently practising scripting for my first project and I'm having problems with constantly running a check.
What I want to do is make something happen when player health drops below, let's say 50, but I don't know how to do that.
Where do I have to put the if-structure if I want the check to be ran every update (constantly, so when the health drops stuff happens) without other conditions?
Right now it looks like this. Amnesia gives error complaining about the if.
if (GetPlayerHealth() < 50.0f)
{
FadeEnemyToSmoke("servant_grunt", true);
}