Yes, fail combat system causes it.
Make sure that you check if npc has hp before sending a projectile.
|
Hello,
Base: Project Insanity
Problem: I noticed that after the npc is killed (when he's dying), the player shoots an extra arrow (if the npc is killed from the first hit, then the extra arrow isn't shooted).
Errors(Compiling Errors): no errors
Other Information/Media(Pictures, etc):
Any ideas what could cause it?
Spoiler for Your post:
Show the code that you use for projectile maybe you can make it like this
if(!npcs[whatevergetsurnpcindex].isDead)
{
return;
}
something like that.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |