View Single Post
  #8  
Old 04-01-2010, 12:40 AM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default

Quote:
for i=1,getn(ShopModulesRare),1 do
if (10 > RAND(100)) then ship_tre2_1:AddModuleToInventory(ShopModulesRare[i],1); end;
end;
for i=1,getn(ShopModulesRare),1 do
if (10 > RAND(100)) then ship_tre3_1:AddModuleToInventory(ShopModulesRare[i],1); end;
end;
That is the code.

Basically, it spawns a random amount of loot from the shipmodulesrare directory into the transport's inventory.
Reply With Quote