hey everyone, im using my computer to type this so apologies for any spelling errors.
anyway, im making my game. and it is going well, but i thought it would be alot more realistic with head shots involved . my bullets are not raycast but rigid bodies with tags such as "MP40" which when the enemy box collier is triggered by, takes away health.
ive done it before were i do the same for the head, so whenever the bullet come in contact with the head, it calls the enemy health script and takes away maximum health. only problem is, it calls back to every enemy with that enemy health script. (Im using javascript BTW) and kills all enemy. is there anyway i can tell the script to only take away health from the enemy shot?? thanks once again.
↧