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
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
predicatePredicate<ItemBehaviour>maxDistancefloatMaximum distance to search on the ground
Returns
- ItemBehaviour
The item if found, null otherwise