GetIsID
Jump to navigation
Jump to search
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 message "Cuirass equipped" elseif GetIsID myboots message "Boots equipped" elseif GetIsID mygauntlets message "Gauntlets equipped" elseif GetIsID mygreaves message "Greaves equipped" elseif GetIsID myhelmet message "Helmet equipped" else message "Shield equipped" endif end
Note[edit | edit source]
- The script compiler assumes that player actually refers to playerRef. Therefore, GetIsID player will never return true. Use GetIsReference player instead.