ok im working on an rpg and i want to make my right mouse key able to select an enemy by this i mean
the magic casted will only hit that target (lock on ) and all the sword cuts and fist will it that target as well hits
could some one give me an idea of how to achieve this