NiObjectTypeDerivesFrom

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(bool:derivesFrom) NiObjectTypeDerivesFrom short:typeID short:nifID short:blockID
(bool:derivesFrom) NiObjIsDeriv short:typeID short:nifID short:blockID

Returns whether the Type of blockID derives from the type indicated by typeID. Type IDs may be gotten from GetNifTypeIndex. The default value of blockID, 0, refers to the root, with type NiNode - NiNode blocks derive from NiAVObject, which derives from NiObjectNET, which derives from NiObject, so this function will return true for any of those types when used without an explicit blockID. All types derive from NiObject.