OnSell - ObjectReference

From the CreationKit Wiki
Revision as of 16:26, 16 August 2010 by imported>Jlundin (Created page with 'Category:Scripting Category:Papyrus Category:Events '''Member of:''' ObjectReference Script Event called when the object has just been sold by someone. == Synta…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Event called when the object has just been sold by someone.

Syntax[edit | edit source]

Event OnSell(Actor akSeller)

Parameters[edit | edit source]

  • akSeller: The actor we were sold by.

Examples[edit | edit source]

Event OnSell(Actor akSeller)
  if (akSeller == Game.GetPlayer())
    Debug.Trace("We were sold by the player")
  else
    Debug.Trace("Someone (or something) else sold us")
  endIf
endEvent

See Also[edit | edit source]