# sm.melee.getMeleeAttackHits

Performs melee attack check and returns a table of raycast results.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.melee.getMeleeAttackHits( uuid, origin, directionRange, source )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.melee.md#getmeleeattackhits)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `uuid` | [Uuid](../Game-Script-Environment/Userdata/Uuid.md) | The uuid of the melee attack. |
| `origin` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The source position of the attack. |
| `directionRange` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The direction and reach of the attack. |
| `source` | [Unit](../Game-Script-Environment/Userdata/Unit.md) | The unit that is the source of the attack. |

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `RaycastResult` | table | A table containing [RaycastResult](../Game-Script-Environment/Userdata/RaycastResult.md) data. |
