Class DeadDropManager
Provides access to dead drops present in the scene.
public static class DeadDropManager
- Inheritance
-
DeadDropManager
- Inherited Members
Properties
All
All dead drops currently registered in the scene.
public static DeadDropInstance[] All { get; }
Property Value
Empty
All dead drops that contain no items.
public static DeadDropInstance[] Empty { get; }
Property Value
Methods
GetByGUID(string)
Gets a dead drop by its GUID.
public static DeadDropInstance? GetByGUID(string guid)
Parameters
guidstringThe GUID string to look up.
Returns
- DeadDropInstance
The dead drop instance if found; otherwise null.
GetClosest(Vector3?, bool)
Gets the closest dead drop to a world position.
public static DeadDropInstance? GetClosest(Vector3? origin, bool mustBeEmpty = false)
Parameters
originVector3World position to measure from.
mustBeEmptyboolIf true, only considers empty dead drops.
Returns
- DeadDropInstance
The closest matching dead drop, or null if none exist.
GetRandomEmptyNear(Vector3?)
Gets a random empty dead drop near a world position. Applies a light bias: avoids the absolute nearest, then chooses randomly among closer half.
public static DeadDropInstance? GetRandomEmptyNear(Vector3? origin)
Parameters
originVector3World position to bias selection around.
Returns
- DeadDropInstance
A random nearby empty dead drop, or null if none exist.