Difference between revisions of "Dispenser (Programming)"
Jump to navigation
Jump to search
(New page: ---+++Generic Dispenser (#880) $dispenser is an object that can be used as a container for like-typed objects. For example, a pack of cigarettes which contains twenty identical cigar...) |
(No difference)
|
Revision as of 10:19, 25 December 2008
---+++Generic Dispenser (#880)
$dispenser is an object that can be used as a container for like-typed
objects. For example, a pack of cigarettes which contains twenty identical cigarettes. Instead of populating your pack with 20 objects ahead of time, this device will allow you to create them on the fly as players remove them from the container.
It also allows you to put an object of that type back into the container, at
which time the object is junked, but the number of things the container contains is incremented.
- .spawn* -- the object this dispenser will create or junk
- .holds* -- how many of .spawn this dispenser can hold
- .remaining* -- host many of .spawn are left in the dispenser
Also, please remember to describe and alias your dispensers properly.
-- Main.SpunKy - 03 May 2004