Class InteractUsingEvent
Raised when a target entity is interacted with by a user while holding an object in their hand.
Inheritance
System.Object
InteractUsingEvent
Namespace: Content.Shared.Interaction
Assembly: Content.Shared.dll
Syntax
public sealed class InteractUsingEvent : HandledEntityEventArgs
Constructors
| Improve this Doc View SourceInteractUsingEvent(EntityUid, EntityUid, EntityUid, EntityCoordinates)
Declaration
public InteractUsingEvent(EntityUid user, EntityUid used, EntityUid target, EntityCoordinates clickLocation)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | user | |
EntityUid | used | |
EntityUid | target | |
Robust.Shared.Map.EntityCoordinates | clickLocation |
Properties
| Improve this Doc View SourceClickLocation
The original location that was clicked by the user.
Declaration
public EntityCoordinates ClickLocation { get; }
Property Value
Type | Description |
---|---|
Robust.Shared.Map.EntityCoordinates |
Target
Entity that was interacted on.
Declaration
public EntityUid Target { get; }
Property Value
Type | Description |
---|---|
EntityUid |
Used
Entity that the user used to interact.
Declaration
public EntityUid Used { get; }
Property Value
Type | Description |
---|---|
EntityUid |
User
Entity that triggered the interaction.
Declaration
public EntityUid User { get; }
Property Value
Type | Description |
---|---|
EntityUid |