User Tools

Site Tools


modding:function:objaddrandomitems

Discuss this page on this pages TalkPage

objAddRandomItems

See objAddRandomItems at Xelerus

Syntax (objAddRandomItems obj table count) → True/Nil
Arguments 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 item, random, spaceobject
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; Return to Functions list

modding/function/objaddrandomitems.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1