Difference between revisions of "IsEquipped"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Odessa
(Created. source nvse_whatsnew)
 
imported>Odessa
(usage note)
 
Line 1: Line 1:
{{Function
{{Function
  |origin = NVSE
  |origin = NVSE
  |summary = Returns true (1) if the calling object is currently equipped by its owner. Added by NVSE 4.5.6.
  |summary = Returns true (1) if the [[calling reference]] is currently equipped by its owner. Added by NVSE 4.5.
  |name = IsEquipped
  |name = IsEquipped
  |returnType = bool
  |returnType = bool
  |referenceType = reference
  |referenceType = reference
  |arguments =  
  |arguments =  
  |example = ; Within an object script
  |example = }}
if IsEquipped
==Example==
<pre>
ref rItem
 
foreach rItem <- PlayerREF
    if rItem.IsEquipped
     ; do something
     ; do something
endif
    endif
}}
loop
</pre>
==Usage Note==
*As of NVSE 4.5.7, this function must be called on an inventory <b>reference</b>. You can obtain a (temporary) inventory reference using a [[foreach]] loop on a container, or functions such as [[GetInvRefsForItem]], [[GetFirstRefForItem]], or [[CreateTempRef]].
==See Also==
==See Also==
*[[EquipMe]]
*[[EquipMe]]
*[[UnequipMe]]
*[[UnequipMe]]
*[[EquipItem2]]
*[[EquipItem2]]
*[[GetEquippedObject]]
[[Category:Functions_(NVSE)]]
[[Category:Functions_(NVSE)]]

Latest revision as of 03:15, 21 September 2014

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

A function added by the New Vegas Script Extender.

Description

Returns true (1) if the calling reference is currently equipped by its owner. Added by NVSE 4.5.

Syntax

[help]
(bool) reference.IsEquipped

Example

ref rItem

foreach rItem <- PlayerREF
    if rItem.IsEquipped
     ; do something
    endif
loop

Usage Note

See Also