NiAVObjectAddProperty
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)