Difference between revisions of "GetEquipped"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Odessa
(clarified return + see also for FOSE functions)
imported>JT
 
Line 16: Line 16:


==Notes==
==Notes==
This function will only check for Armor and Weapon objects.  It will not detect Armor Addon objects, such as integrated gloves or pieces of weapons like the Power Fist.
* This function will only check for Armor and Weapon objects.  It will not detect Armor Addon objects, such as integrated gloves or pieces of weapons like the Power Fist.
* The argument can also be a [[Form List]], in which case the function returns true if any item in the list is currently equipped by the PC.


==See Also==
==See Also==

Latest revision as of 05:50, 6 September 2015

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

Link to TES4 Construction Set Wiki: GetEquipped.

A function included in the GECK version 1.1.0.36.

Description

Checks whether or not the calling actor has equipped the target object.

Syntax

[help]
(bool) [Actor].GetEquipped Target:ObjectID

Example

if Player.getEquipped MS06LincolnsHat

Evaluates True (1) if the player is wearing Lincoln's Hat

Notes

  • This function will only check for Armor and Weapon objects. It will not detect Armor Addon objects, such as integrated gloves or pieces of weapons like the Power Fist.
  • The argument can also be a Form List, in which case the function returns true if any item in the list is currently equipped by the PC.

See Also