Difference between revisions of "GetArmorDT"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Rlilewis
m
imported>Odessa
(Added categroy, NVSE version and see also)
Line 1: Line 1:
{{Function
{{Function
  |origin = NVSE
  |origin = NVSE
  |summary = Called on a reference, gets the damage threshold of the specified inventory item
  |summary = Called on a reference, gets the damage threshold of the specified inventory item. Added by NVSE V1b2.
  |name = GetArmorDT
  |name = GetArmorDT
  |returnType = int
  |returnType = int
Line 11: Line 11:
  |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 = 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
}}
}}
==Notes==
==Notes==
* Armors in Fallout New Vegas primarily use Damage Threshold (GetArmorDT) unlike FO3 (GetArmorAR)
* Armors in Fallout New Vegas primarily use Damage Threshold (GetArmorDT) unlike FO3 (GetArmorAR)
==See Also==
*[[SetArmorDT]]
*[[GetArmorArmorRating|GetArmorAR]]
[[Category:Functions_(NVSE)]]

Revision as of 10:14, 30 March 2014

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

A function added by the New Vegas Script Extender.

Description

Called on a reference, gets the damage threshold of the specified inventory item. Added by NVSE V1b2.

Syntax

[help]
(int) reference.GetArmorDT objectID:ref

Example

ref myREF
ref myArmor
short myArmorDT

begin ScriptEffectStart

set myRef to this
set myArmor to myRef.GetEquippedObject 2 ; Get armor equipped at upper body location

set myArmorDT to (myRef.GetArmorDT myArmor)

end

Notes

  • Armors in Fallout New Vegas primarily use Damage Threshold (GetArmorDT) unlike FO3 (GetArmorAR)

See Also