Question by
Dpac93 · Apr 17, 2018 at 06:46 PM ·
scripting problemcollisioncollidercharactercharactercontroller
How do I make player attack with LMB if the enemy is within range?
I am trying to make a moba like game with click to move and attack mechanics. My plan is to make an additional spherical/box collider double the size of the player and if the minion gets inside this collider player can damage the enemy by clicking on it. Is it possible and if so can someone provide a script for this please. Thank you.
I have used raycast and navmesh to move the player around.
Comment