#how do I make an enemy attack but only when its near the player instead of just constantly hitting?

1 messages · Page 1 of 1 (latest)

junior pivot
#

Also same thing if the enemy has a weapon how would I do that?

austere condor
#

there is 2 ways the easy one and the little hard one

#

but ill show u the easy one (collision)

austere condor
#

make a hitbox like this

#

when contact starts

#

when contact stops

junior pivot
#

Thank you so much