I’ve been reviewing tutorials and and forums posts all morning trying to find a solution to my questions, but have been less than thrilled with the results.
EDIT So basically im trying to imitate the aim lock system from metroid prime, but ill be using it for a melee based game instead
So I’m working on a first person sword fighting game, and I’m looking to make a lock on mechanic that works exactly like dark souls, where when you lock onto the enemy, your camera stays focused on the enemy so that you can move around it in a circle. I dont need the system to be able to hot change swapping targets, as the lock on system is only engaged while holding left click (its also what engages combat mode, as fighting is done solely with mouse movements.) I’d also like to specify that I need the system to lock on the enemy that is right in front of the character. I’ve been trying to modify systems that use a collision sphere to create an array of targets that you can then choose to lock onto, but the problem’s were 1. I couldn’t get the lock on to even work, and it was too specialized and would require me to copy the system multiple times for different enemy types.
Not looking for someone to just hand me the answer but if you for some reason know exactly how to do it that would be dope, otherwise just pointing me at relevant resources would really help