|
Post by thepicos on Sept 26, 2018 11:09:35 GMT
Hi all, I want to create a game with the fixed camera but I dont want to use the mouse to aim, I just want to press RightClik to auto aim. I know there is an Auto aim script, and the MobileShooter uses it, but it does not work if I use the fixed camera. Is there any form to achieve this? It something like this auto aim
|
|
|
Post by thepicos on Sept 27, 2018 14:05:31 GMT
Invector Is there any form to achieve this? Or it is not part of the asset and I need to customize the code?
|
|
|
Post by Invector on Sept 28, 2018 16:54:19 GMT
Hmm not out of the box, you will need to create your own lock-on system with a verification to lock-on into the closest enemy regarding if it's on screen or not
|
|
|
Post by thepicos on Oct 4, 2018 23:26:05 GMT
Invector But how can I told to the character where to aim without the mouse or the camera? I am using the TopDownInput, I want to duplicate how do the aim with the mouse, but without it. Edit: Better, which is the method to make the aim, I cannot found it.
|
|
|
Post by Invector on Oct 5, 2018 17:14:25 GMT
The method to aim is located under the vShooterMeleeInput script, method AimInput. But like I told you, you could use the Lock-On component as a starting point to create your custom lock-on
|
|