public static Task<LootResult> Coroutines.Loot(NetworkObject obj, bool shouldMove, int tmeout)
Attempts to collect a world item. When shouldMove is true, the character may move into interaction range first.
Task<LootResult>Result of a WorldItem loot request.
Parameters
obj- Parameter type:
NetworkObjectThe world item to collect.
shouldMove- Parameter type:
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Whether the character may move into interaction range.
tmeout- Parameter type:
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.The maximum time, in milliseconds, allowed for the interaction.
Returns: A result describing whether the item was collected or why the attempt failed.