OnSell

From the Oblivion ConstructionSet Wiki
Revision as of 02:58, 26 May 2006 by imported>JOG (Moved to "Category: Blocktypes")
Jump to navigation Jump to search

Syntax:

 begin OnSell SellerRefID (optional) 

Example:

 begin OnSell player 

This block will be run once when the scripted object is sold. If you specify a SellerRefID, the block will only run when that specific reference sells the object; otherwise, the block will run when any NPC sells the scripted object.