Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Targeted NPC Dies, set everyone on the maps target to 0
#2
Well this is the code the resets the target after killing an NPC:

Code:
' Check if target is npc that died and if so set target to 0
        If Player(Attacker).TargetType = TARGET_TYPE_NPC And Player(Attacker).Target = MapNpcNum Then
            Player(Attacker).Target = 0
            Player(Attacker).TargetType = 0
        End If

Maybe you forgot to add this since you did modify it:

Code:
If Player(Attacker).Target = MapNpcNum Then

Just a thought though.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)