


# PMB COMBAT
Guide




Sending attacks when you know who to attack
```lua
pmb_combat.attack.send_attack(itemstack, attacker, victim)
```



Sending attacks from the player or other thing blindly in some direction using raycasts
```lua
pmb_combat.attack.blindly_attack_with_raycast(itemstack, attacker, dist, dir, filter)
```



Blocking attacks can be declared, and the callback will be called when an attack comes in.
No callback means it will block the attack perfectly.

Return true to block and continue
Return nil block this specific attack but destroy the block.
Return false to destroy the blocking declaration and let other attacks in.
```lua
pmb_combat.attack.declare_blocking(player, time, callback)

-- block for 0.5 seconds and use the function to 
pmb_combat.attack.declare_blocking(player, 0.5, function(player, attackdef)
    if is_blockable then
        return true
    else
        return false
    end
end)
```




```lua

```




```lua

```

