Knowledge base
Knowledge base
Knowledge base
Free, anonymous browsing of Unreal Engine Blueprint examples, node references, and best practices. The same content the WoalzCraft plugin uses to generate Blueprints.
20 results for gun
string
A blocking collision between two shapes. Fires OnHit on both actors. Use for solid impacts.
Pattern: BP_Projectile with SphereCollision(root), StaticMesh, ProjectileMovementComponent(InitialSpeed=3000, MaxSpeed=3000, bRotationFollowsVelocity=true). OnComponentHit → ApplyDamage(OtherActor, Damage, GetInstigatorController, Self) → SpawnEmitterAtLocation(ImpactPoint) → DestroyActor. Spawner: SpawnActorFromClass(BP_Projectile, MuzzleLocation, MuzzleRotation).
PossessPawnUE 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoAn Actor that can be possessed by a Controller. Use for the player's avatar and AI agents.
Get Target Arm LengthUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoPattern: PoolManager with Array<AActor*> AvailablePool. Init: loop SpawnActor N times → SetActorHiddenInGame(true) → SetActorEnableCollision(false) → Array_Add to pool. GetFromPool: Array_Length > 0 → remove last → SetHidden(false) → SetCollision(true) → SetActorLocation → return. ReturnToPool: SetHidden(true) → SetCollision(false) → Array_Add back.
A boom that holds a child component (usually a Camera) at a fixed offset, with collision-aware retraction. Standard for third-person cameras.