Difference between revisions of "NiAVObjectAddProperty"

From the Oblivion ConstructionSet Wiki
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.

See Also[edit | edit source]