#help with making a weapon that deals aoe knockback

1 messages · Page 1 of 1 (latest)

hollow torrent
#

i wanna make a weapon that deals knockback in an area of effect and im unsure on how to do it without the knockback being set in one direction

vague shard
#

Get the forward vector of the trigger handle

#

And make that the velocity direction

sonic canopy
vague shard
#

Mb

ancient talon
#

You’ll need to define where the explosion happens, let’s say you use a projectile component, and where the projectile lands explodes, you’d get the hit pos, send that to everyone, and if your current pos is within let’s say 10m of the hit pos, you’d subtract the hit pos from your current pos and locally run a velocity set with the as the direction (if this flings you towards the explosion point, reverse the subtracting positions)

hollow torrent
ancient talon