Help me.

Статус
В этой теме нельзя размещать новые ответы.
Пожалуйста не дублируйте один и тот же вопрос в нескольких темах
How can I solve the problem? I need to write a procedure for a mob, it should include the while block and wait for a certain time. But when I use while loop and spawn a mob, my game crashes. I need the number of times at a time to be subtracted from the variable, but that doesn't work with the loop yet.
Also, I need this variable to decrease in parallel with health when dealing damage to a mob. I tried to find tutorials, but I didn't find anything, I tried myself, but still nothing worked.
And how do I make sure that the value is not reduced to a negative degree (for example -1)?
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху