Mod:Creation Kit/DamageTypeInfo Struct - InstanceData

F4SE Member of: Mod:Creation Kit/InstanceData Script

A structure that holds information on an a Damage Type from an object.

Syntax
Struct DamageTypeInfo Form Type int Damage EndStruct

Members

 * Type: A Mod:Creation Kit/Damage Type.
 * Damage: The value of the Type on the item.

Examples
InstanceData:Owner thisInstance = new InstanceData:Owner thisInstance.Owner = self as ObjectReference
 * Getting DamageTypeInfo from a LaserGun

InstanceData:DamageTypeInfo[] DamageTypes = GetDamageTypes(thisInstance) Debug.Trace(DamageTypes[0].Type)   ; dtEnergy Debug.Trace(DamageTypes[0].Damage) ; 24