Difference between revisions of "NiAVObjectAddProperty"
Jump to navigation
Jump to search
imported>DragoonWraith (New page: This is a command from NifSE. '''Syntax''' (short:propID) NiAVObjectAddProperty string:name short:typeID short:nifID ''short:blockID'' (short:propID) NiAVObjAddProp ...) |
imported>DragoonWraith |
||
Line 18: | Line 18: | ||
[[Category:NifSE|AVObjectAddProperty]] | [[Category:NifSE|AVObjectAddProperty]] | ||
[[Category:NifSE (NiAVObject)|AddProperty]] | [[Category:NifSE (NiAVObject)|AddProperty]] | ||
[[Category:NifSE (NiProperty)|!AVObjectAddProperty]] |
Latest revision as of 20:45, 20 January 2011
This is a command from NifSE.
Syntax
(short:propID) NiAVObjectAddProperty string:name short:typeID short:nifID short:blockID (short:propID) NiAVObjAddProp string:name short:typeID short:nifID short:blockID
Adds a NiProperty-derived block as a property of the NiAVObject-derived block specified by blockID. The property's name and type are indicated by the name and typeID arguments; use GetNifTypeIndex to determine the typeID of the Type you wish to add (possible types are listed below).
Returns -1 on a failure; otherwise returns the blockID of the new property.
Property Types
These are all of the NIF block types that derive from NiProperty. These are generally found using NiAVObjectGetProperties.
- NiObject (ancestor)
- NiObjectNET (ancestor)
- NiProperty
- BSShaderProperty
- ...
- NiAlphaProperty
- NiDitherProperty
- NiFogProperty
- NiMaterialProperty
- NiMultiTextureProperty
- NiShadeProperty
- NiSpecularProperty
- NiStencilProperty
- NiTextureModeProperty
- NiTextureProperty
- NiTexturingProperty
- NiTransparentProperty
- NiVertexColorProperty
- NiWireframeProperty
- NiZBufferProperty
- BSShaderProperty
- NiProperty
- NiObjectNET (ancestor)