Class Scp018
A wrapper class for InventorySystem.Items.ThrowableProjectiles.Scp018Projectile item.
Implements
IWrapper<InventorySystem.Items.ItemBase>
IWrapper<InventorySystem.Items.ThrowableProjectiles.ThrowableItem>
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.Items
Assembly: Exiled.API.dll
Syntax
public class Scp018 : Throwable, IWrapper<ItemBase>, IWrapper<ThrowableItem>
Constructors
| Improve this Doc View SourceScp018(ThrowableItem)
Initializes a new instance of the Scp018 class.
Declaration
public Scp018(ThrowableItem itemBase)
Parameters
Type | Name | Description |
---|---|---|
InventorySystem.Items.ThrowableProjectiles.ThrowableItem | itemBase | The base InventorySystem.Items.ThrowableProjectiles.ThrowableItem class. |
Properties
| Improve this Doc View SourceFriendlyFireTime
Gets or sets the time for SCP-018 not to ignore the friendly fire.
Declaration
public float FriendlyFireTime { 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 |
Projectile
Gets a ExplosionGrenadeProjectile to change grenade properties.
Declaration
public Scp018Projectile Projectile { get; }
Property Value
Type | Description |
---|---|
Scp018Projectile |
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 Scp018Projectile 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 |
---|---|
Scp018Projectile | 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. |