Class InteractInventorySlotEvent
Raised when a player attempts to activate an item in an inventory slot or hand slot
Inheritance
System.Object
InteractInventorySlotEvent
Namespace: Content.Shared.Interaction
Assembly: Content.Shared.dll
Syntax
public sealed class InteractInventorySlotEvent : EntityEventArgs
Constructors
| Improve this Doc View SourceInteractInventorySlotEvent(NetEntity, Boolean)
Declaration
public InteractInventorySlotEvent(NetEntity itemUid, bool altInteract = false)
Parameters
Type | Name | Description |
---|---|---|
NetEntity | itemUid | |
System.Boolean | altInteract |
Properties
| Improve this Doc View SourceAltInteract
Whether the interaction used the alt-modifier to trigger alternative interactions.
Declaration
public bool AltInteract { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ItemUid
Entity that was interacted with.
Declaration
public NetEntity ItemUid { get; }
Property Value
Type | Description |
---|---|
NetEntity |