Struct EntityDamageRecord
Inherited Members
Namespace: GTA
Assembly: ScriptHookVDotNet3.dll
Syntax
public readonly struct EntityDamageRecord
Properties
| Improve this Doc View SourceAttacker
Gets the attacker Entity. Can be null
.
Declaration
public readonly Entity Attacker { get; }
Property Value
Type | Description |
---|---|
Entity |
GameTime
Gets the game time when the Victim took damage.
Declaration
public readonly int GameTime { get; }
Property Value
Type | Description |
---|---|
Int32 |
Victim
Gets the victim Entity.
Declaration
public readonly Entity Victim { get; }
Property Value
Type | Description |
---|---|
Entity |
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 SourceDeconstruct(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 |
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 |
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 |
|
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 |
|
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
Operators
| Improve this Doc View SourceEquality(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 |
|
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 |
|