objAddRandomItems
Syntax:
(objAddRandomItems spaceObject itemTable number)
Argument List:
spaceObject: The space object that you want to add the items to.
itemTable: The table where you want to get the items from.
number: A number of times you want to get an item from the itemTable.
Returns:
True.
Category:
item, spaceObject
Description:
Adds items to the space object according to the itemTable number of times.
Example:
Code: Select all
(objAddRandomItems gplayership &trMinorItem6; 3)
Comment:
Very helpful function for adding random items to a space object from code.