#Entitie movement when after target and entitie reach

1 messages · Page 1 of 1 (latest)

cunning condor
#

guys can someone help me, when I change the "reach_multiplier" in the component "melee_attack" of an entity it doesnt do anything in game. And can somebody explain to me how to change a entities movement speed when they are after a target in game (with components)? Its bugging me and i cant seem to fix it or find it anywhere

digital root
#

The reach multiplier is multiplied by the entity’s collision box width to determine the actual reach. What is its collision width?

cunning condor
#

width: 0.8

#

height: 3.5

digital root
#

And reach_multiplier?
Also, the reach will be measured from the center of the entity. For example, the default multiplier for mobs is 2, zombies have 0.6 width, so their attack reach is 1.2 from their center, which is 0.9 from the edge of their collision box.

#

For your speed issue, use speed_multiplier just like reach_multiplier.

cunning condor
#

I even tried setting the reach multiplier to 50 but it did nothing

#

no number works

cunning condor
#

nevermind, i got it to work now

#

what are some components to trigger a special attack tho