NiAVObjectAddProperty

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

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.

See Also[edit | edit source]