OnAdd

Revision as of 19:32, 31 January 2006 by imported>Ecaponi
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

 begin OnAdd ContainerRefID (optional)

Example:

begin OnAdd 
begin OnAdd player 

This block will be run once when the scripted object is added to the Container's inventory. If no parameter is used, the block will be run whenever the object is added to anything's inventory.