I am making a boss NPC and whenever I respawn it the bosses npc.ai[0] etc. doesn't reset and starts back on the value they were at for the previous boss. Does anyone know what's wrong?
Here is the code
To do this you could put in a line such as this;
if (npc.life > npc.lifeMax / 2)
{
//Code for first stage
}
if (npc.life <= npc.lifeMax / 2)
{
//Code for second stage
}
There may be a better way of doing this but if there is I don't know it.
Hope this helped.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.