NiNodeAddChild

This is a command from NifSE.

Syntax

(short:childID) NiNodeAddChild string:name short:typeID short:nifID short:blockID
(short:childID) NiNodeAddCh string:name short:typeID short:nifID short:blockID

Adds a NiAVObject-derived block of the type indicated by typeID as a child of the NiNode-derived block specified by blockID. Use GetNifTypeIndex to determine the typeID for your desired block type. Returns the new block's blockID if successful, -1 otherwise.

See AlsoEdit