OnSell - ObjectReference

Member of: ObjectReference Script

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

SyntaxEdit

Event OnSell(Actor akSeller)

ParametersEdit

  • akSeller: The actor we were sold by.

ExamplesEdit

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 AlsoEdit