Show / Hide Table of Contents

Class DamageType

A DamageType is intended to define and describe a particular form of damage and to provide an avenue for customizing responses to damage from various sources.

Inheritance
System.Object
UObject
DamageType
DmgTypeBP_Environmental_C
SKEL_DmgTypeBP_Environmental_C
Inherited Members
UObject.TransientPackage
UObject.CastTo<T>(UObject)
UObject.CastTo(UObject, Type)
UObject.RemoveObject(UObject)
UObject.MakeObjectArrayField<T>(NativeArray*)
UObject.NotImplemented<T>()
UObject.Construct()
UObject.GetHashCode()
UObject.GetName()
UObject.ToString()
UObject.Name
UObject._None
UObject.None
UObject.ObjPointer
UObject.LoadObjectFromClass(Class, UObject, String, String, LoadFlags, PackageMap, Boolean)
UObject.LoadClass(Class, UObject, String, String, LoadFlags, PackageMap)
UObject.GetPropertyFor<T>(Name)
UObject.ExecuteUbergraph
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class DamageType : UObject
Remarks

For example, a game could make a DamageType_Fire set it up to ignite the damaged actor.

DamageTypes are never instanced and should be treated as immutable data holders with static code functionality. They should never be stateful.

Properties

| Improve this Doc View Source

bCausedByWorld

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

bRadialDamageVelChange

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

bScaleMomentumByMass

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

DamageFalloff

Damage fall-off for radius damage (exponent). Default 1.0=linear, 2.0=square of distance, etc.

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

DamageImpulse

The magnitude of impulse to apply to the Actors damaged by this type.

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

DefaultObject

Get UE4 Default Object for this Class

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

DestructibleDamageSpreadScale

How much the damage spreads on a destructible mesh

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

DestructibleImpulse

How large the impulse should be applied to destructible meshes

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

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class

Methods

| Improve this Doc View Source

New(UObject, Name)

Spawn an object of this class

Declaration
public static DamageType New(UObject obj = null, Name name = default(Name))
Parameters
Type Name Description
UObject obj
Name name
Returns
Type Description
DamageType

Operators

| Improve this Doc View Source

Implicit(IntPtr to DamageType)

Convert from IntPtr to UObject

Declaration
public static implicit operator DamageType(IntPtr p)
Parameters
Type Name Description
System.IntPtr p
Returns
Type Description
DamageType
  • Improve this Doc
  • View Source
Back to top Generated by DocFX