Difference between revisions of "OnObjectEquipped - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>IsharaMeradin
(→‎Examples: modify source lang tag value to remove "error" boxes)
imported>Scrivener07
(Undo revision 41197 by IsharaMeradin (talk))
Line 16: Line 16:


== Examples ==
== Examples ==
<source lang="text">
<source lang="papyrus">
Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)
Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)
   if akBaseObject as Weapon
   if akBaseObject as Weapon

Revision as of 00:11, 17 September 2013

Member of: Actor Script

Event called when the actor equips an object.

Syntax

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)

Parameters

  • akBaseObject: The base object the actor just equipped.
  • akReference: The reference that the actor just equipped - if the reference is persistent. Otherwise, None.

Examples

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)
  if akBaseObject as Weapon
    Debug.Trace("This actor just equipped a weapon!")
  endIf
endEvent

Notes

See Also