Difference between revisions of "OnDrop"
m
changed lay-out
imported>Illyism (added NoToc) |
imported>Illyism m (changed lay-out) |
||
Line 3: | Line 3: | ||
This block will be run once when the scripted object is removed from the container's inventory. If no parameter is used, the block will be run whenever the object is removed from anything's inventory. | This block will be run once when the scripted object is removed from the container's inventory. If no parameter is used, the block will be run whenever the object is removed from anything's inventory. | ||
''Syntax:''' | |||
begin OnDrop ''ContainerRefID'' | begin OnDrop ''ContainerRefID'' | ||
'''Example:''' | |||
begin OnDrop | begin OnDrop | ||
begin OnDrop player | begin OnDrop player | ||
Line 18: | Line 18: | ||
:or if the player was in inventory mode when he dropped it - '''if MenuMode == 1002''' | :or if the player was in inventory mode when he dropped it - '''if MenuMode == 1002''' | ||
==See Also== | ===See Also=== | ||
[[OnAdd]] | * [[OnAdd]] | ||
[[Category: Blocktypes]] | [[Category: Blocktypes]] |