10.04.2016, 09:14
Yes it's just math but I don't know how to write it in Pawn, First time I use Remainder in my script
Let's say FireHealth is the HP of the ongoing fire
I want to gametext the player something when FireHealth is divided by 20 and remainder equals 0
(Fire HP starts with 100, it will gametext on 80 60 40 20)
if(FireHealth/20 == 0)
{
GameTextForPlayer etc etc
}
Is there a shorter version for FireHealth/20 == 0 ?
Let's say FireHealth is the HP of the ongoing fire
I want to gametext the player something when FireHealth is divided by 20 and remainder equals 0
(Fire HP starts with 100, it will gametext on 80 60 40 20)
if(FireHealth/20 == 0)
{
GameTextForPlayer etc etc
}
Is there a shorter version for FireHealth/20 == 0 ?