IWieldableThrowableHandlerCC

This interface manages the handling of throwable wieldable objects in a character's inventory. It inherits from ICharacterComponent and includes the following properties and methods:

  • SelectedIndex: Gets the index of the currently selected throwable object.

  • OnThrow: Event triggered when a throwable object is thrown, providing subscribers the ability to react to the action.

  • ThrowableCountChanged: Event triggered when the count of available throwable objects changes, notifying subscribers about the update.

  • ThrowableIndexChanged: Event triggered when the index of the selected throwable changes, allowing subscribers to respond to selection updates.

  • TryThrow(): Attempts to throw the currently selected throwable object. Returns true if the throw was successful, otherwise false.

  • SelectNext(bool next): Selects the next throwable in the inventory. The next parameter determines the direction of selection (true for the next item, false for the previous item).

  • GetThrowableCountAtIndex(int index): Returns the count of throwable objects available at the specified index in the inventory.

  • GetThrowableAtIndex(int index): Retrieves the throwable object located at the specified index.

Last updated