Skip to content

[BUG]: ‘OnPlayerUsedItem’ does not trigger properly #215

@CCrous

Description

@CCrous

Before You Report

  • I have searched for existing reports of this bug, and this bug report is unique.

Version

Game version: 14.1.1 & LabAPI version: 1.1.0.0

Description

The OnPlayerUsedItem event does not trigger properly. If a player uses an item (such as a Painkillers) and switches to another item before the usage animation ends, the event will not be triggered. This causes some plugins that rely on this event to not work correctly.

To Reproduce

  1. A player starts using a consumable item (e.g. Painkillers).
  2. Before the usage animation ends, they quickly switch to another item (e.g. a keycard).
  3. Observe whether OnPlayerUsedItem is triggered.

Expected: The event should trigger upon successful use.
Actual: The event is not triggered if the player switches items before the animation ends.

Expected Behavior

The event should trigger upon successful use

Additional Information

nope

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions