could be the death animation
|
|

Title says it all, Point me in the right direction as im confused as to why this is happening. Only happens with some npcs not all.
![]()
could be the death animation






Code:@Override public void sendDeath(final Entity source) { final DamageHandler dh = new DamageHandler(); final NPCCombatDefinitions defs = getCombatDefinitions(); final Player killer = getMostDamageReceivedSourcePlayer(); try { } catch (final Exception e) { } resetWalkSteps(); combat.removeTarget(); setNextAnimation(null); try { if (dh.inDamageArea(source)) { dh.decreaseNPC(); } } catch (final Exception e) { } WorldTasksManager.schedule(new WorldTask() { int loop; @Override public void run() { if (loop == 0) { setNextAnimation(new Animation(defs.getDeathEmote())); try { if (!dh.inDamageArea(source)) { drop(); } } catch (final Exception e) { } } else if (loop >= defs.getDeathDelay()) { reset(); setLocation(respawnTile); finish(); if (!spawned) { try { if (!dh.inDamageArea(source)) { setRespawnTask(); } } catch (final Exception e) { } } stop(); } loop++; } }, 0, 1); }

What am I even looking at? the HitMask?




DEbug the "defs.getDeathDelay()" value to see if it is this part that screw with it not removing the npc.
| « [Help] Need help with making melee wep hit 6 times every hit | help needed .p character files » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |