Class Scp018
A wrapper class for InventorySystem.Items.ThrowableProjectiles.Scp018Projectile item.
public class Scp018 : Throwable, IWrapper<ItemBase>, IWrapper<ThrowableItem>
- Inheritance
-
Scp018
- Inherited Members
- Extension Methods
Constructors
Scp018(ThrowableItem)
Initializes a new instance of the Scp018 class.
public Scp018(ThrowableItem itemBase)
Parameters
itemBase
ThrowableItemThe base InventorySystem.Items.ThrowableProjectiles.ThrowableItem class.
Properties
FriendlyFireTime
Gets or sets the time for SCP-018 not to ignore the friendly fire.
public float FriendlyFireTime { get; set; }
Property Value
FuseTime
Gets or sets how long the fuse will last.
public float FuseTime { get; set; }
Property Value
Projectile
Gets a ExplosionGrenadeProjectile to change grenade properties.
public Scp018Projectile Projectile { get; }
Property Value
Methods
Clone()
Clones current ExplosiveGrenade object.
public override Item Clone()
Returns
- Item
New ExplosiveGrenade object.
SpawnActive(Vector3, Player)
Spawns an active grenade on the map at the specified location.
public Scp018Projectile SpawnActive(Vector3 position, Player owner = null)
Parameters
position
Vector3The location to spawn the grenade.
owner
PlayerOptional: The Player owner of the grenade.
Returns
- Scp018Projectile
Spawned grenade.
ToString()
Returns the ExplosiveGrenade in a human readable format.
public override string ToString()
Returns
- string
A string containing ExplosiveGrenade-related data.