Spawn your first projectile
Blueprint setup
Section titled “Blueprint setup”Start with /Game/VoxelProjectilePack/Vol01/Blueprints/BP_VP_Fireball.
- In your weapon or ability Blueprint, create a spawn transform at the muzzle. The actor’s local +X axis is the forward direction.
- Use Begin Deferred Actor Spawn From Class, choosing
BP_VP_Fireball. Set Owner to the firing actor where appropriate so the projectile can ignore it. - On the returned projectile, assign
Preset,InitialSpeed,VisualScaleand any appearance or impact overrides. - Bind OnImpact on the returned actor if your game needs collision feedback.
- Call Finish Spawning Actor with the same transform. Movement and VFX initialize from the configured values.
Set properties before finishing the spawn. Changing the variables after BeginPlay does not automatically reapply every initialization setting to a running effect. The supplied demo launchers show a working spawn-and-bind setup.
For a baseline, use Preset = 0, InitialSpeed = 2200 cm/s and VisualScale = 1. Leave EnableImpactVFX and EnableDebris on.
Collision and lifetime
Section titled “Collision and lifetime”The projectile uses a swept collision sphere and stock ProjectileMovement with substepping. Make the target block the projectile collision channel. CollisionRadius is independent of the visual scale.
The first blocking contact stops movement and emission, spawns the optional matching impact, and broadcasts one OnImpact(Hit) event. Existing world-space particles finish before the projectile actor is retired.
When MaxFlightTime expires, the head fades over 0.18 seconds. Timeout produces no impact and no OnImpact event.
Choose another style
Section titled “Choose another style”Select another child Blueprint from the catalog. Each child carries its own flight system, impact, colors, speed, trail lifetime and gravity default.
Use the supplied actor as the integration point. Advanced Niagara integrations must drive the lifecycle parameters themselves, including stopping flight emission; a raw looping flight system will not perform gameplay collision.