giveLoot

This function simulates a loot drop into a survivor’s inventory. To generate the loot spec, create a loot drop in an Beacon Ark: Survival Ascended project. Once finished, right-click the loot drop in the Loot Drops list and choose the “Copy for Sentinel” item.

There are some minor restrictions. “Add Item Sets to Default” will be ingored, as Sentinel is not loading the default loot tables. Stat Limits Multipliers and Preventing Grinding are also ignored. Items with quantities greater than 1 will be forced to 0 quality.

Signatures

beacon.giveLoot(characterId, lootSpec);

Parameters

characterId

The Sentinel UUID of the survivor this loot should be given to.

lootSpec

A loot spec generated by Beacon.

Examples

Give a survivor a full set of flak

const characterId = '305b1849-c7ac-5a4b-afe9-86628d91bf23';
const lootSpec = 'H4sIAAAAAAAAE-1STU-DQBD9L3smLDbBtNwsGvRQU9OjMWatY9lkP8juLGqa_neXRWiIogln4PTem5038zJHUoOxXCuSXUREcnWHIHeAtsXsY4ArAzUovHaV4HuG4Fk0DiLC-6rHY9Pl3snmYd9lgN-BH0okWZokcfJHU08aDm3PF-GgMlxhXjK1B5KFp97pwTGFHD87pyEOuggwDQ9CQUss48vV4FssV2k_TuHNXrk6kOyNCeunsR4IaLY4W3QSMswFk9XGCeR-DTDevvHrVl2kYV5doY-63ahiWJKM0IJJoFvDJRM3zGBJc21g3a1raciNXhmpDd0AMvFd3PCBfQ7sWmu08bhEzsMkcXp6OkVzqP-Guiu5wd9DDdIc6oRQC6FrGDnVVptjnRDrLQgJI8faanOsE2Ld-plGjjVIP0Jt_i_Ne0cDVgcAAA';
beacon.giveLoot(characterId, lootSpec);