Show / Hide Table of Contents

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 Source

InteractUsingEvent(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 Source

ClickLocation

The original location that was clicked by the user.

Declaration
public EntityCoordinates ClickLocation { get; }
Property Value
Type Description
Robust.Shared.Map.EntityCoordinates
| Improve this Doc View Source

Target

Entity that was interacted on.

Declaration
public EntityUid Target { get; }
Property Value
Type Description
EntityUid
| Improve this Doc View Source

Used

Entity that the user used to interact.

Declaration
public EntityUid Used { get; }
Property Value
Type Description
EntityUid
| Improve this Doc View Source

User

Entity that triggered the interaction.

Declaration
public EntityUid User { get; }
Property Value
Type Description
EntityUid
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾