Class ShootingEventArgs
Contains all information before a player fires a weapon.
Inheritance
System.Object
ShootingEventArgs
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 ShootingEventArgs : IPlayerEvent, IDeniableEvent, IFirearmEvent, IItemEvent, IExiledEvent
Constructors
| Improve this Doc View SourceShootingEventArgs(Player, Firearm, ShotMessage)
Initializes a new instance of the ShootingEventArgs class.
Declaration
public ShootingEventArgs(Player shooter, Firearm firearm, ShotMessage msg)
Parameters
Type | Name | Description |
---|---|---|
Player | shooter | |
InventorySystem.Items.Firearms.Firearm | firearm | |
InventorySystem.Items.Firearms.BasicMessages.ShotMessage | msg |
Properties
| Improve this Doc View SourceFirearm
Gets the target Firearm.
Declaration
public Firearm Firearm { get; }
Property Value
Type | Description |
---|---|
Firearm |
IsAllowed
Gets or sets a value indicating whether or not the shot can be fired.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
Player
Gets the player who's shooting.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
ShotMessage
Gets or sets the ShotMessage for the event.
Declaration
public ShotMessage ShotMessage { get; set; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.Firearms.BasicMessages.ShotMessage |
ShotPosition
Gets or sets the position of the shot.
Declaration
public Vector3 ShotPosition { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
TargetNetId
Gets or sets the netId of the target of the shot.
Declaration
public uint TargetNetId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |