NiAVObjectAddProperty

Revision as of 12:39, 31 August 2010 by 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 ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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