LootManager

Documents the LootManager class and its functions.

triangle-exclamation

Invoking LootManager

To invoke the loot manager, use the following Global function:

lm = Game.LootManager()

Sub-functions

GenerateLoot

GenerateLoot(lootID : TweakDBID, out itemList : array:ItemModParams);

GetDefaultDropItemName

GetDefaultDropItemName() : CName;

SpawnItemDrop

SpawnItemDrop(obj : ref:GameObject, itemID : ItemID, optional position : Vector4, optional rotation : Quaternion) : Bool;

SpawnItemDropOfManyItems

SpawnItemDropOfManyItems(obj : ref:GameObject, itemInstructions : array:DropInstruction, optional dropItemName : CName, optional position : Vector4, optional rotation : Quaternion) : Bool;

SpawnThrowableItemDrop

Last updated