Search Results for

    Show / Hide Table of Contents

    Class ShootingTargetToy

    A wrapper class for AdminToys.ShootingTarget.

    Inheritance
    System.Object
    AdminToy
    ShootingTargetToy
    Implements
    IWorldSpace
    IPosition
    IRotation
    IWrapper<AdminToys.ShootingTarget>
    Inherited Members
    AdminToy.AdminToyBase
    AdminToy.ToyType
    AdminToy.Player
    AdminToy.Footprint
    AdminToy.Position
    AdminToy.Rotation
    AdminToy.MovementSmoothing
    AdminToy.IsStatic
    AdminToy.Get(AdminToyBase)
    AdminToy.Spawn()
    AdminToy.UnSpawn()
    AdminToy.Destroy()
    System.Object.ToString()
    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.Toys
    Assembly: Exiled.API.dll
    Syntax
    public class ShootingTargetToy : AdminToy, IWorldSpace, IPosition, IRotation, IWrapper<ShootingTarget>

    Properties

    | Improve this Doc View Source

    AutoResetTime

    Gets or sets the remaining health of the target.

    Declaration
    public int AutoResetTime { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Base

    Gets the base-game AdminToys.ShootingTarget for this target.

    Declaration
    public ShootingTarget Base { get; }
    Property Value
    Type Description
    AdminToys.ShootingTarget
    | Improve this Doc View Source

    Bullseye

    Gets the UnityEngine.GameObject of the bullseye.

    Declaration
    public GameObject Bullseye { get; }
    Property Value
    Type Description
    UnityEngine.GameObject
    | Improve this Doc View Source

    BullseyePosition

    Gets the bullseye location of the target.

    Declaration
    public Vector3 BullseyePosition { get; }
    Property Value
    Type Description
    UnityEngine.Vector3
    | Improve this Doc View Source

    BullseyeRadius

    Gets the bullseye radius of the target.

    Declaration
    public float BullseyeRadius { get; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    GameObject

    Gets the UnityEngine.GameObject of the target.

    Declaration
    public GameObject GameObject { get; }
    Property Value
    Type Description
    UnityEngine.GameObject
    | Improve this Doc View Source

    Health

    Gets or sets the remaining health of the target.

    Declaration
    public float Health { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    IsSynced

    Gets or sets a value indicating whether or not the target is in sync mode.

    Declaration
    public bool IsSynced { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    MaxHealth

    Gets or sets the max health of the target.

    Declaration
    public int MaxHealth { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Scale

    Gets or sets the size scale of the target.

    Declaration
    public Vector3 Scale { get; set; }
    Property Value
    Type Description
    UnityEngine.Vector3
    | Improve this Doc View Source

    Type

    Gets the type of the target.

    Declaration
    public ShootingTargetType Type { get; }
    Property Value
    Type Description
    ShootingTargetType
    | Improve this Doc View Source

    VerificationRule

    Gets the Interactables.Verification.IVerificationRule for this target.

    Declaration
    public IVerificationRule VerificationRule { get; }
    Property Value
    Type Description
    Interactables.Verification.IVerificationRule

    Methods

    | Improve this Doc View Source

    Clear()

    Clears the target and resets its health.

    Declaration
    public void Clear()
    | Improve this Doc View Source

    Create(ShootingTargetType, Nullable<Vector3>, Nullable<Vector3>, Nullable<Vector3>, Boolean)

    Creates a new ShootingTargetToy.

    Declaration
    public static ShootingTargetToy Create(ShootingTargetType type, Vector3? position = null, Vector3? rotation = null, Vector3? scale = null, bool spawn = true)
    Parameters
    Type Name Description
    ShootingTargetType type

    The ShootingTargetType of the ShootingTargetToy.

    System.Nullable<UnityEngine.Vector3> position

    The position of the ShootingTargetToy.

    System.Nullable<UnityEngine.Vector3> rotation

    The rotation of the ShootingTargetToy.

    System.Nullable<UnityEngine.Vector3> scale

    The scale of the ShootingTargetToy.

    System.Boolean spawn

    Whether the ShootingTargetToy should be initially spawned.

    Returns
    Type Description
    ShootingTargetToy

    The new ShootingTargetToy.

    | Improve this Doc View Source

    Damage(Single, DamageHandlerBase, Vector3)

    Damages the target with the given damage, item, footprint, and hit location.

    Declaration
    public bool Damage(float damage, DamageHandlerBase damageHandler, Vector3 exactHit)
    Parameters
    Type Name Description
    System.Single damage

    The damage to be dealt.

    PlayerStatsSystem.DamageHandlerBase damageHandler

    The PlayerStatsSystem.DamageHandlerBase dealing the damage.

    UnityEngine.Vector3 exactHit

    The exact location of the hit.

    Returns
    Type Description
    System.Boolean

    Whether or not the damage was sent.

    | Improve this Doc View Source

    Get(ShootingTarget)

    Gets the ShootingTargetToy belonging to the AdminToys.ShootingTarget.

    Declaration
    public static ShootingTargetToy Get(ShootingTarget shootingTarget)
    Parameters
    Type Name Description
    AdminToys.ShootingTarget shootingTarget

    The AdminToys.ShootingTarget instance.

    Returns
    Type Description
    ShootingTargetToy

    The corresponding ShootingTargetToy instance.

    Implements

    IWorldSpace
    IPosition
    IRotation
    IWrapper<T>

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX