Cyber Engine Tweaks
Modding
Dictionary
Other
External docs
Other Wikis
Powered By GitBook
LootManager
Documents the LootManager class and its functions.
NOT DOCUMENTED We currently don't have information on how these functions work. They are being documented here for visibility.

Invoking LootManager

To invoke the loot manager, use the following Global function:
1
lm = Game.LootManager()
Copied!

Sub-functions

GenerateLoot

GenerateLoot
Info & Usage
1
GenerateLoot(lootID : TweakDBID, out itemList : array:ItemModParams);
Copied!

GetDefaultDropItemName

GetDefaultDropItemName
Info & Usage
1
GetDefaultDropItemName() : CName;
Copied!

SpawnItemDrop

SpawnItemDrop
Info & Usage
1
SpawnItemDrop(obj : ref:GameObject, itemID : ItemID, optional position : Vector4, optional rotation : Quaternion) : Bool;
Copied!

SpawnItemDropOfManyItems

SpawnItemDropOfManyItems
Info & Usage
1
SpawnItemDropOfManyItems(obj : ref:GameObject, itemInstructions : array:DropInstruction, optional dropItemName : CName, optional position : Vector4, optional rotation : Quaternion) : Bool;
Copied!

SpawnThrowableItemDrop

SpawnThrowableItemDrop
Info & Usage
1
SpawnThrowableItemDrop(obj : ref:GameObject, itemID : ItemID, position : Vector4, rotation : Quaternion, params : ref:ParabolicTrajectoryParams) : Bool;
Copied!
Last modified 9mo ago