OnPlayerFallLongDistance - Actor

From the Fallout4 CreationKit Wiki
Revision as of 17:50, 17 November 2015 by imported>Plplecuyer (→‎Parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Event send to the player he falls long distance and takes damage.

Syntax[edit | edit source]

Event OnPlayerFallLongDistance(float afDamage)

Parameters[edit | edit source]

  • afDamage: the damage the player got from falling

Examples[edit | edit source]

; Event is sent to the player
Event OnPlayerFallLongDistance(float afDamage)
  Debug.Trace(afDamage+ " points of damage taken by the player during fall")
endEvent

See Also[edit | edit source]