Search Results for

    Show / Hide Table of Contents

    Struct EntityDamageRecord

    Inherited Members
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: GTA
    Assembly: ScriptHookVDotNet3.dll
    Syntax
    public readonly struct EntityDamageRecord

    Properties

    | Improve this Doc View Source

    Attacker

    Gets the attacker Entity. Can be null.

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

    GameTime

    Gets the game time when the Victim took damage.

    Declaration
    public readonly int GameTime { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Victim

    Gets the victim Entity.

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

    WeaponHash

    Gets the weapon hash what the Victim took damage with.

    Declaration
    public readonly WeaponHash WeaponHash { get; }
    Property Value
    Type Description
    WeaponHash

    Methods

    | Improve this Doc View Source

    Deconstruct(out Entity, out Entity, out WeaponHash, out Int32)

    Declaration
    public readonly void Deconstruct(out Entity victim, out Entity attacker, out WeaponHash weaponHash, out int gameTime)
    Parameters
    Type Name Description
    Entity victim
    Entity attacker
    WeaponHash weaponHash
    Int32 gameTime
    | Improve this Doc View Source

    Deconstruct(out Entity, out WeaponHash, out Int32)

    Declaration
    public readonly void Deconstruct(out Entity attacker, out WeaponHash weaponHash, out int gameTime)
    Parameters
    Type Name Description
    Entity attacker
    WeaponHash weaponHash
    Int32 gameTime
    | Improve this Doc View Source

    Equals(EntityDamageRecord)

    Determines if entityDamageRecord has the same properties as this EntityDamageRecord.

    Declaration
    public readonly bool Equals(EntityDamageRecord entityDamageRecord)
    Parameters
    Type Name Description
    EntityDamageRecord entityDamageRecord

    The Object to check.

    Returns
    Type Description
    Boolean

    true if the entityDamageRecord has the same properties as this EntityDamageRecord; otherwise, false.

    | Improve this Doc View Source

    Equals(Object)

    Determines if an Object is an EntityDamageRecord and has the same properties as this EntityDamageRecord.

    Declaration
    public override readonly bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The Object to check.

    Returns
    Type Description
    Boolean

    true if the obj is an EntityDamageRecord and has the same properties as this EntityDamageRecord; otherwise, false.

    Overrides
    ValueType.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override readonly int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Operators

    | Improve this Doc View Source

    Equality(EntityDamageRecord, EntityDamageRecord)

    Determines if two EntityDamageRecords have the same properties.

    Declaration
    public static bool operator ==(EntityDamageRecord left, EntityDamageRecord right)
    Parameters
    Type Name Description
    EntityDamageRecord left

    The left Entity.

    EntityDamageRecord right

    The right Entity.

    Returns
    Type Description
    Boolean

    true if left has the same properties as right; otherwise, false.

    | Improve this Doc View Source

    Inequality(EntityDamageRecord, EntityDamageRecord)

    Determines if two Entitys do not have the same properties.

    Declaration
    public static bool operator !=(EntityDamageRecord left, EntityDamageRecord right)
    Parameters
    Type Name Description
    EntityDamageRecord left

    The left Entity.

    EntityDamageRecord right

    The right Entity.

    Returns
    Type Description
    Boolean

    true if left does not have the same properties as right; otherwise, false.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX