I am fairly new to the programming world. I am currently at College and one of the tasks I need to do is create a “stun gun” or “freeze gun”. Basically when you shoot a target (other player) i want it to stop them for 5 or so seconds, The gun will do no damage to the player, just simply freeze them. The player can be refrozen and/or continuously shot to remain frozen until the shooters ammo runs out. This may sound weird but its for a certain game-type i am making. If anyone can give me some help on what to call in certain classes, or even provide me with the basic code the will freeze the player for several seconds, ill be very thankful.
I know how to make a new weapon, and change fire-rates etc… I am just stuck with what it is i have to do to freeze a player using the projectile class, or pawn class?