Perhaps you would be suprused by the number of people who carry guns 24/7. This would be very hard to implement.
As with any real world problem, there are lots of obstacles. Sure, your AI will need to figure out if the gun is being pointed at someone, etc.