Class InteractingShootingTargetEventArgs
Contains all information before a player interacts with a shooting target.
Inheritance
System.Object
InteractingShootingTargetEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class InteractingShootingTargetEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceInteractingShootingTargetEventArgs(Player, ShootingTarget, ShootingTargetButton, Int32, Int32, Boolean)
Initializes a new instance of the InteractingShootingTargetEventArgs class.
Declaration
public InteractingShootingTargetEventArgs(Player player, ShootingTarget shootingTarget, ShootingTargetButton targetButton, int maxHp, int autoResetTime, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
AdminToys.ShootingTarget | shootingTarget | |
ShootingTargetButton | targetButton | |
System.Int32 | maxHp | |
System.Int32 | autoResetTime | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether or not the interaction is allowed.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NewAutoResetTime
Gets or sets the new auto reset time of the target.
Declaration
public int NewAutoResetTime { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NewMaxHp
Gets or sets the new max HP of the target.
Declaration
public int NewMaxHp { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Player
Gets the player interacting with the shooting target.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
ShootingTarget
Gets the shooting target being interacted with.
Declaration
public ShootingTargetToy ShootingTarget { get; }
Property Value
Type | Description |
---|---|
ShootingTargetToy |
TargetButton
Gets the button the player interacted with.
Declaration
public ShootingTargetButton TargetButton { get; }
Property Value
Type | Description |
---|---|
ShootingTargetButton |