User Tools

Site Tools


tnhscript:trapcontainer

TrapContainer

Moves the items that are contained by this object to a ControlDevice linked object. Turning off the trap will move contained items out of the linked container and into the trap. Linking to the starting point will move items into or out of the Player object.

The trap can be set to only move specific items with the track_contains parameter. When set, then the script will create an Owns link to the objects it adds to the container. Only those objects will be removed when the trap is turned off. The links can also be created for objects that begin outside of the trap.

Inherits GenericTrap
Links ControlDevice, Contains, Owns
Parameters track_contains (boolean) Only move objects that were originally contained by the trap.
tnhscript/trapcontainer.txt · Last modified: 2010/11/22 19:11 (external edit)