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 elapsed
Pure node. Useful for time-based calculations. Resets when level loads.
GetTimeSecondsUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: Variables RegenRate(float)=5.0, RegenDelay(float)=3.0, RegenTimerHandle. On damage received: ClearTimer(RegenTimerHandle) → SET timer(RegenDelay, RegenTick, looping=true). RegenTick function: Branch(Health < MaxHealth) → True: SET Health = FClamp(Health + RegenRate*DeltaSeconds, 0, MaxHealth). False: ClearTimer.
UProgressBar::SetPercent. 0.0 to 1.0 range.
Set PercentUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoDealing damage: Event → ApplyDamage(TargetActor, BaseDamage, InstigatorController, DamageCauser, DamageTypeClass). Receiving: EventAnyDamage → Damage output → Subtract_FloatFloat(CurrentHealth, Damage) → FClamp(Result, 0, MaxHealth) → SET CurrentHealth → Branch(CurrentHealth <= 0) → True: DestroyActor. Initialize CurrentHealth=MaxHealth in BeginPlay.
Pattern: Variables bIsSprinting(bool), Stamina(float)=100, MaxStamina(float)=100, SprintSpeed(float)=1200, WalkSpeed(float)=600, DrainRate(float)=20, RecoverRate(float)=10. Sprint pressed: bIsSprinting=true → SetMaxWalkSpeed(SprintSpeed). Released: bIsSprinting=false → SetMaxWalkSpeed(WalkSpeed). Tick: Branch(bIsSprinting) → Stamina -= DrainRate*DT. Else: Stamina += RecoverRate*DT. Clamp(0, Max). If Stamina<=0 → force stop sprint.
Get Time SecondsUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoGetUnpausedTimeSecondsUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoInPercent: 0.0=empty, 1.0=full. Use Divide to convert (CurrentHealth/MaxHealth).
SetPercentUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPure node. Same value as EventTick's DeltaSeconds output. Use for frame-rate-independent motion.
GetWorldDeltaSecondsUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoEventTickUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago