Class PlacingBulletHoleEventArgs
Contains all information before placing a bullet hole decal.
public class PlacingBulletHoleEventArgs : IFirearmEvent, IItemEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
PlacingBulletHoleEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
PlacingBulletHoleEventArgs(Item, RaycastHit)
Initializes a new instance of the PlacingBulletHoleEventArgs class.
public PlacingBulletHoleEventArgs(Item firearm, RaycastHit hit)
Parameters
firearm
Itemhit
RaycastHit
Properties
Firearm
Gets the Firearm triggering the event.
public Firearm Firearm { get; }
Property Value
IsAllowed
Gets or sets a value indicating whether the decal can be placed.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item triggering the event.
public Item Item { get; }
Property Value
Player
Gets the decal owner.
public Player Player { get; }
Property Value
Position
Gets or sets the decal position.
public Vector3 Position { get; set; }
Property Value
- Vector3
Rotation
Gets or sets the decal rotation.
public Quaternion Rotation { get; set; }
Property Value
- Quaternion