Table of Contents

Method FindItem

Namespace
GrindFest
Assembly
GrindFest.dll

FindItem(string, float)

Searches for an item everywhere: equipped items first, then inventory, then ground nearby.

public static ItemBehaviour FindItem(string name, float maxDistance = 15)

Parameters

name string

Name the item must contain

maxDistance float

Maximum distance to search on the ground

Returns

ItemBehaviour

The item if found, null otherwise

FindItem(Predicate<ItemBehaviour>, float)

Searches for an item everywhere: equipped items first, then inventory, then ground nearby.

public static ItemBehaviour FindItem(Predicate<ItemBehaviour> predicate, float maxDistance = 15)

Parameters

predicate Predicate<ItemBehaviour>
maxDistance float

Maximum distance to search on the ground

Returns

ItemBehaviour

The item if found, null otherwise