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.