Beispiel #1
0
 public void Interact()
 {
     if (Player.anim.actionId == 0 && Player.actionId == 0 && Player.attacking == false)
     {
         Player.targetNPC = Nearest();
         Player.connecter.connectionHandler.rpcSender.selectNpcTarget(Player.playerName, Nearest().npcUniqueId);
         Player.useAbility(0);
     }
 }
Beispiel #2
0
 public void Update(Scr_Player player)
 {
     if (player.currentHealth < Trigger)
     {
         if (SkillsAndAbilities.instance.getAbilitySlot(Slot).cooldownCurrent <= 0)
         {
             player.useAbility(Slot);
         }
     }
 }