# you can just add/remove ranged attack component depending on what's the entity holding with something like environment sensor