robz
Junior vMember
Posts: 30
|
Post by robz on Jan 22, 2018 17:45:52 GMT
Hi team,
I was wondering how to implement auto aim(lock on) to the enemy ,whenever the enemy is in range and when we click shoot. I need this for a top down shooter for mobile ,where don't want user to manually aim at the enemy . Any suggestion from experienced guys here .
Robz
|
|
robz
Junior vMember
Posts: 30
|
Post by robz on Jan 29, 2018 15:30:43 GMT
found how to achieve it , if anyone needs to know please let me know
|
|
arkas
Junior vMember
Posts: 40
|
Post by arkas on Jan 30, 2018 0:03:14 GMT
I want to learn
|
|
robz
Junior vMember
Posts: 30
|
Post by robz on Feb 5, 2018 16:22:31 GMT
In very simple words 1.Access targets enemy using vLockOnShooter script (method GetPossibleTargets). 2.Use the target position as your aimposition in shootermanager script in vshoot method.
|
|
arkas
Junior vMember
Posts: 40
|
Post by arkas on Feb 5, 2018 16:27:56 GMT
Thank you i will try
|
|