Editing IsEquipped

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Function
{{Function
  |origin = NVSE
  |origin = NVSE
  |summary = Returns true (1) if the [[calling reference]] is currently equipped by its owner. Added by NVSE 4.5.
  |summary = Returns true (1) if the calling object is currently equipped by its owner. Added by NVSE 4.5.6.
  |name = IsEquipped
  |name = IsEquipped
  |returnType = bool
  |returnType = bool
  |referenceType = reference
  |referenceType = reference
  |arguments =  
  |arguments =  
  |example = }}
  |example = ; Within an object script
==Example==
if IsEquipped
<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)]]

Please note that all contributions to the Fallout3 GECK Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see GECK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page: