AIs with guns and sentrys that fire

is anyone framiliar with the fps tutoiral extra download because i have three questions that need answering 1. how can i change the robot's gun to "machine gun" instead of the rocket launcher, and hav it do damage to me when im hit. 2. make the sentry fire and do damage. 3. (haveing another robot that still uses rocket launcher) making rockets do damage when im hit

You can do all of this and more by learning how to program properly