when you have them flagged for defend = true or even as hostile. only if you get up to their face they attack, like literally only up to their face despite them havinga radius of about 15.
before this months RUST update, theyd attack fine when theyd get shot at with Defend=True
maybe plugin needs updating?