Skip to content
/SLASHPLAY

How to make NPCs ignore players in Rust

Type ai.ignoreplayers True in the server console and NPCs and animals stop targeting anyone. ai.ignoreplayers False turns it back.

ai.ignoreplayers

Toggles whether NPCs and animals ignore players completely.

ai.ignoreplayers <True|False>

Examples

ai.ignoreplayers True

NPCs leave players alone.

Values

ValueWhat it does
True AI ignores players
FalseDefault AI reacts to players

Arguments

stateRequired
True to make AI ignore players.

What it does

With it on, AI will not target or react to anyone. Handy when building or testing near monuments.

The game's own description: When enabled, AI entities ignore player presence and will not target or react to players; useful for building/testing without NPC interference

Good to know

  • ai.addignoreplayer ignores just one player instead.

Run it on your server

Type it in the server console or send it over RCON; admins can also use the F1 console in game. To keep a setting, run server.writecfg after changing it, or put it on the launch line as +name value.

Your own
game server.

CS2, Minecraft, Palworld and more, from $0.03 an hour.