#Custom shield not blocking all projectiles (RESOLVED)

1 messages · Page 1 of 1 (latest)

eternal path
#

I'm making a sort of deflection script that should act like the vanilla shield but some projectiles don't get deflected. almost like the system.interval run isn't getting all of the projectiles all of the time making it hit the player. any ideas for why not all of the projectiles are being deflected?

quiet grove
eternal path
#

would taking the arrow velocity and adding it to the position help while keeping the shield smaller do you think?

quiet grove
eternal path
#

well I think its working but now I think the distance calculations aren't working. like either the arrow will deflect waay too early or not at all :|

quiet grove
eternal path
#

looks like it's working now, I just took the position and added have of the velocity. added another check for the upper block that player exists in as well.