Functions Documentation
View Function Edit Function
Name objAddRandomItems
Syntax (objAddRandomItems obj table count) -> True/Nil
Argument List obj: The spaceObject that you want to add the items to.
table: The itemTable UNID where you want to get the items from.
count: The number of times the itemtable is called.
Returns boolean: True if successful, else Nil.
Category spaceobject, random, item
Description Adds items to the space object according to the itemTable number of times.
Example
(objAddRandomItems gplayership &trMinorItem6; 3)

Adds three random items to the gplayership according to the table &trMinorItem6;
Comment Very helpful function for adding random items to a space object from code.