I am fairly new to the programming world. I am currently at Collegecollege and one of the tasks I need to do is create a "stun gun" or "freeze gun"gun."
Basically, when you shoot a target (otheranother player) iI want it to stop them for 5five or so seconds,. The gun will do no damage to the player, just simply freezefreezes them. The player can be refrozen and/or continuously shot to remain frozen until the shootersshooter's 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, illI'll be very thankful.
I know how to make a new weapon, and change fire-rates, etc... I am just stuck with what it is iI have to do to freeze a player using the projectile class, or pawn class?