Dynamically added melee weapon
In this tutorial, we'll guide you through the process of dynamically equipping a weapon with the Mnh Shape component during runtime.
Last updated
In this tutorial, we'll guide you through the process of dynamically equipping a weapon with the Mnh Shape component during runtime.
Last updated
Add Mnh Shape component to weapon actor to serve as the representation for the hitbox.
One second after the BeginPlay event, spawn the weapon actor and attach it to the "hand_r" bone.
Designate weapon’s Mnh Shape Component as the Tracer Source and trigger “Start All Tracers Event” & Configure Tracer Source as Mnh Shape Component
Add Mnh Tracer to the Player Character & setup properties as follows
With the given configuration, your game will spawn a weapon actor one second after the BeginPlay event. The annotated HitBox on the weapon will serve as the Tracer source, enabling accurate hit detection for the weapon during runtime.