Difference between revisions of "GetIsID"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>SJML Bot
(Bot creating condition functions pages.)
(No difference)

Revision as of 12:08, 21 November 2011

Syntax:

 GetIsID ObjectID

Returns 1 if the calling object is a reference to ObjectID. The parameter for this function is a base object ID, as defined in the object window.

Example:

 Begin Onequip Player              ; One script for a whole set of armor
   if GetIsID mycuirass == 1
      message "Cuirass equipped"
   elseif GetIsID myboots == 1
      message "Boots equipped"
   elseif GetIsID mygauntlets == 1
      message "Gauntlets equipped"
   elseif GetIsID mygreaves == 1
      message "Greaves equipped"    
   elseif GetIsID myhelmet == 1
      message "Helmet equipped"
   else
      message "Shield equipped"
   endif
 end

Papyrus Version

GetBaseObject - ObjectReference