Storage Keeper

Scripting with the Storage Keeper class.

As long as the Inventool.playerTransform field is set, the storage keeper will automatically detect when the player is in range.

Fields & Properties

Name
Description
Type
Access

storage

The storage.

Storage

public

inRangeIndicator

An object that is enabled when the player is in range of the storage keeper.

GameObject

public

interactionAction

The action to invoke when Interact() is called.

Action

public

Active Storage Keeper

You can get the storage keeper the player is currently in range of with the Storage.activeStorageKeeper field. This will be null if the player is not in range of a storage keeper.

Interact

You can interact with the storage keeper with the Interact method. By default, the interact method invokes the interactionAction method which is set to the OpenInventoolWindow method.

Last updated