OnPlayerFireWeapon - Actor

From the Fallout4 CreationKit Wiki
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]