Difference between revisions of "GetArmorDT"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Odessa
(Added categroy, NVSE version and see also)
imported>Odessa
(Fixed poor wording/inaccuracies)
 
Line 1: Line 1:
{{Function
{{Function
  |origin = NVSE
  |origin = NVSE
  |summary = Called on a reference, gets the damage threshold of the specified inventory item. Added by NVSE V1b2.
  |summary = Returns the Damage Threshold of the specified armor [[base form]], or a [[calling reference]] Added by NVSE 1.2.
  |name = GetArmorDT
  |name = GetArmorDT
  |returnType = int
  |returnType = int
  |referenceType = reference
  |referenceType = reference
  |arguments = {{FunctionArgument
  |arguments = {{FunctionArgument
   |Name = objectID
   |Name = Armor
   |Type = ref
   |Type = form
  |Optional = y
   }}
   }}
|example = ref myREF<br>ref myArmor<br>short myArmorDT<br><br>begin ScriptEffectStart<br><br>set myRef to this<br>set myArmor to myRef.GetEquippedObject 2 ; Get armor equipped at upper body location<br><br>set myArmorDT to (myRef.GetArmorDT myArmor)<br><br>end
}}
}}
==Example==
<pre>
int iDT
set iDT to GetArmorDT ArmorLeather
</pre>


==Notes==
==Notes==
* Armors in Fallout New Vegas primarily use Damage Threshold (GetArmorDT) unlike FO3 (GetArmorAR)
* Armors in Fallout New Vegas primarily use Damage Threshold, unlike FO3 which use Damage Resistance, or 'Armor Rating', this can be retrieved using [[GetArmorArmorRating|GetArmorAR]].


==See Also==
==See Also==
*[[SetArmorDT]]
*[[SetArmorDT]]
*[[GetArmorArmorRating|GetArmorAR]]
*[[GetArmorArmorRating|GetArmorAR]] (Damage Resistance)


[[Category:Functions_(NVSE)]]
[[Category:Functions_(NVSE)]]

Latest revision as of 08:18, 9 September 2014

< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Returns the Damage Threshold of the specified armor base form, or a calling reference Added by NVSE 1.2.

Syntax

[help]
(int) reference.GetArmorDT Armor:form

Example

int iDT

set iDT to GetArmorDT ArmorLeather

Notes

  • Armors in Fallout New Vegas primarily use Damage Threshold, unlike FO3 which use Damage Resistance, or 'Armor Rating', this can be retrieved using GetArmorAR.

See Also