Class ExplosiveGrenade
A wrapper class for InventorySystem.Items.ThrowableProjectiles.ExplosionGrenade.
Implements
Inherited Members
Namespace: Exiled.API.Features.Items
Assembly: Exiled.API.dll
Syntax
public class ExplosiveGrenade : Throwable, IWrapper<ItemBase>, IWrapper<ThrowableItem>
Constructors
| Improve this Doc View SourceExplosiveGrenade(ThrowableItem)
Initializes a new instance of the ExplosiveGrenade class.
Declaration
public ExplosiveGrenade(ThrowableItem itemBase)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.ThrowableProjectiles.ThrowableItem | itemBase | The base InventorySystem.Items.ThrowableProjectiles.ThrowableItem class. |
Properties
| Improve this Doc View SourceBurnDuration
Gets or sets how long the Burned effect will last.
Declaration
public float BurnDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
ConcussDuration
Gets or sets how long the Concussed effect will last.
Declaration
public float ConcussDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
DeafenDuration
Gets or sets how long the Deafened effect will last.
Declaration
public float DeafenDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
FuseTime
Gets or sets how long the fuse will last.
Declaration
public float FuseTime { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
MaxRadius
Gets or sets the maximum radius of the grenade.
Declaration
public float MaxRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Projectile
Gets a ExplosionGrenadeProjectile to change grenade properties.
Declaration
public ExplosionGrenadeProjectile Projectile { get; }
Property Value
Type | Description |
---|---|
ExplosionGrenadeProjectile |
ScpDamageMultiplier
Gets or sets the multiplier for damage against Scp players.
Declaration
public float ScpDamageMultiplier { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceClone()
Clones current ExplosiveGrenade object.
Declaration
public override Item Clone()
Returns
Type | Description |
---|---|
Item | New ExplosiveGrenade object. |
Overrides
| Improve this Doc View SourceSpawnActive(Vector3, Player)
Spawns an active grenade on the map at the specified location.
Declaration
public ExplosionGrenadeProjectile SpawnActive(Vector3 position, Player owner = null)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | The location to spawn the grenade. |
Player | owner | Optional: The Player owner of the grenade. |
Returns
Type | Description |
---|---|
ExplosionGrenadeProjectile | Spawned grenade. |
ToString()
Returns the ExplosiveGrenade in a human readable format.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string containing ExplosiveGrenade-related data. |