How do you make an enemy shoot when in close range with my player?
Use a proximity, along with a pointat. This will make the enemy aim at the player
I haven’t done it before, but it’s something like
Proximity player (adjust size of vision) > point at
Proximity also > emit (match rotation)
Something like that should make a rotating turret
Is there a way to do this while an enemy is chasing you already? I’ve got something like this set up, and my enemy chases me, but whenever I emit it will always emit directly behind my enemy.
@zgaulke are you using emit force?
Changing the force to 1 got it. I was making an enemy make “slash” attack that would actually damage my player and didn’t add any force because I didn’t want the slash to go forward, but with a force of 1 and the minimum duration it works pretty good. Thanks!