Class GrenadePickup
A wrapper class for a high explosive grenade pickup.
Implements
IWrapper<InventorySystem.Items.Pickups.ItemPickupBase>
IWrapper<InventorySystem.Items.ThrowableProjectiles.TimedGrenadePickup>
Inherited Members
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.API.Features.Pickups
Assembly: Exiled.API.dll
Syntax
public class GrenadePickup : Pickup, IWrapper<ItemPickupBase>, IWorldSpace, IPosition, IRotation, IWrapper<TimedGrenadePickup>
Properties
| Improve this Doc View SourceBase
Gets the InventorySystem.Items.ThrowableProjectiles.TimedGrenadePickup that this class is encapsulating.
Declaration
public TimedGrenadePickup Base { get; }
Property Value
Type | Description |
---|---|
InventorySystem.Items.ThrowableProjectiles.TimedGrenadePickup |
FuseTime
Gets or sets how long the fuse will last.
Declaration
public float FuseTime { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
ProjectileType
Gets the ProjectileType of the item.
Declaration
public ProjectileType ProjectileType { get; }
Property Value
Type | Description |
---|---|
ProjectileType |
Methods
| Improve this Doc View SourceExplode()
Trigger the grenade to make it Explode.
Declaration
public void Explode()
Explode(Footprint)
Trigger the grenade to make it Explode.
Declaration
public void Explode(Footprint attacker)
Parameters
Type | Name | Description |
---|---|---|
Footprinting.Footprint | attacker | The Footprinting.Footprint of the explosion. |
InitializeProperties(ItemBase)
Declaration
protected override void InitializeProperties(ItemBase itemBase)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.ItemBase | itemBase |