GetIsID

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

Returns 1 if the calling reference is a reference to the specified EditorID of a Base Object.

Syntax

[help]
(0, 1:bool) GetIsID ObjectID:base

Example

Begin Onequip Player              ; One script for a whole set of armor
   if GetIsID myPowerArmor == 1
      unequip myPowerArmor
   endif
 end 

Notes

  • Cannot be used to check the player's EditorID, instead use the player FormID like so: MyREF.GetIsID 7 == 1.

See Also