OnPlayerFireWeapon - Actor

From the Fallout4 CreationKit Wiki
Revision as of 09:20, 1 May 2014 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Event sent to the player when he fires weapon out of combat. Only sent based on a timer since the last time it was sent

Syntax[edit | edit source]

Event OnPlayerFireWeapon(Form akBaseObject)

Parameters[edit | edit source]

  • akBaseObject: the base object weapon fired

Examples[edit | edit source]

; Event is sent to the player
Event OnPlayerFireWeapon(Form akBaseObject)
  Debug.Trace(akBaseObject+ " weapon fired by player.")
endEvent

See Also[edit | edit source]