Class RangedInteractEvent
Raised when an entity is interacted with that is out of the user entity's range of direct use.
Inheritance
System.Object
RangedInteractEvent
Namespace: Content.Shared.Interaction
Assembly: Content.Shared.dll
Syntax
public sealed class RangedInteractEvent : HandledEntityEventArgs
Constructors
| Improve this Doc View SourceRangedInteractEvent(EntityUid, EntityUid, EntityUid, EntityCoordinates)
Declaration
public RangedInteractEvent(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
Location that the user clicked outside of their interaction range.
Declaration
public EntityCoordinates ClickLocation { get; }
Property Value
Type | Description |
---|---|
Robust.Shared.Map.EntityCoordinates |
TargetUid
Entity that was interacted on.
Declaration
public EntityUid TargetUid { get; }
Property Value
Type | Description |
---|---|
EntityUid |
UsedUid
Entity that the user used to interact.
Declaration
public EntityUid UsedUid { get; }
Property Value
Type | Description |
---|---|
EntityUid |
UserUid
Entity that triggered the interaction.
Declaration
public EntityUid UserUid { get; }
Property Value
Type | Description |
---|---|
EntityUid |