> For the complete documentation index, see [llms.txt](https://fehdead.gitbook.io/npc-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/set_ignore_hitgroup.md).

# npc.set\_ignore\_hitgroup

```lua
npc.set_ignore_hitgroup(group)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x0503`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 2521 calls in 218 of 1114 scripts |

## What it does

Puts the NPC's collision body in a group. Two bodies in the same group (a non-zero one) don't push each other: they pass through. `0` is no group.

## Arguments

### `group` (Int)

The group, 0 to 255. Vanilla: `1` (1,329 calls), `10` (638), `2` (346), `255` (145), `254` (29), `3` (25), `0` (7).

## Timing

Returns at once.

## In NPC Kit

Tested on kit NPCs: `set_ignore_hitgroup(1)` blocks the party leader, `(10)` lets the leader walk through. Which group the leader itself is in is not confirmed; the two tested values are the safe ones.

* An NPC that blocks must stay out of a vanilla walker's route.
* Two kit NPCs in the same group pass through each other.

## Used with

* [usecharhit](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/usecharhit.md)`(1)` and [setweight](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setweight.md)`(-1)`, just before.

## Example

```lua
npc.set_ignore_hitgroup(10);   -- a bystander the player can walk through
```
