Difference between revisions of "NiAVObjectGetPropertyByType"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(New page: This is a command from NifSE. '''Syntax''' (string:MaterialName) NifGetNthChildMaterial short:ChildID short:NifID Returns the name of the NiMaterialProperty of the s...)
 
imported>DragoonWraith
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


'''Syntax'''
'''Syntax'''
  (string:MaterialName) NifGetNthChildMaterial short:ChildID short:NifID
  (short:propertyID) NiAVObjectGetPropertyByType short:typeID short:nifID ''short:blockID''
(short:propertyID) NiAVObjGetPropByType short:typeID short:nifID ''short:blockID''


Returns the name of the NiMaterialProperty of the specified Child of the root. If there is no NiMaterialProperty, or the process fails for any other reason, an empty string is returned.
Searches the specified <tt>NiAVObject</tt>-derived block for a property of the given type. Use [[GetNifTypeIndex]] to get the desired <tt>typeID</tt>. The <tt>blockID</tt> argument defaults to 0, indicating the root. The root is usually a <tt>NiNode</tt>, which is derived from <tt>NiAVObject</tt>; thus, this function will work with the default argument.


== See Also ==
== See Also ==
* [[NifNthChildHasMaterial]]
* [[NiAVObjectGetProperties]]
* [[NifSetNthChildMaterial]]
* [[NiAVObjectAddProperty]]
* [[NiAVObjectDeleteProperty]]


[[Category:NifSE|GetNthChildMaterial]]
[[Category:NifSE|AVObjectGetPropertyByType]]
[[Category:NifSE (Children)|GetNthChildMaterial]]
[[Category:NifSE (NiAVObject)|GetPropertyByType]]
[[Category:NifSE (NiProperty)|!AVObjectGetPropertyByType]]

Latest revision as of 20:46, 20 January 2011

This is a command from NifSE.

Syntax

(short:propertyID) NiAVObjectGetPropertyByType short:typeID short:nifID short:blockID
(short:propertyID) NiAVObjGetPropByType short:typeID short:nifID short:blockID

Searches the specified NiAVObject-derived block for a property of the given type. Use GetNifTypeIndex to get the desired typeID. The blockID argument defaults to 0, indicating the root. The root is usually a NiNode, which is derived from NiAVObject; thus, this function will work with the default argument.

See Also[edit | edit source]