Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to create a hitbox that doesn't use the actual weapon pre-made parts?

Asked by 4 years ago

I want to make a hitbox for my melee weapon that doesn't need to make use of the parts in the weapon, i want it to make the hitbox when the attack is made and then delete it when it ends.What kind of system should i use to do that?Region3?OnTouch?RayCasting?Something Else?

1 answer

Log in to vote
1
Answered by 4 years ago

A nice approach to melee weapons is to cast short rays quickly and check for ray hits. These rays are casted from several points. I find this to be an accurate and viable method for hit detection. In fact you can make use of the RayCast Hitbox Module by Swordphin123, which makes the whole job much easier.

All you need to do with the module is learn how it's method work (given on the aforementioned page) and place attachments for each weapon -- which is the only real extensive job but you could generate them at increments.

Here's a visualisation of Swordphin's module in action: https://gfycat.com/fairsecondaryafricangoldencat

0
RayCast worked but some glitches, i guess i can fix them without so much problems, thanks! kevinsoaresv 47 — 4y
Ad

Answer this question