thanks guys. it works great after setting the bot sightdist.
one more question, how do prevent the bots from jumping around too much while shooting? because I had a few camp actions set on the edge of say cliff. when the bots start to shoot, they jumped and chased off the edge and thus all fell to death. it was fun to watch for a while but got ridiculous as they repeat the same thing. I tried to change the node flags to 9 (walk) and it was better but when they jump shoot they again fell off to death. is there a command for bots to detect the potential falling trap ahead? thanx.