NiAVObjectCopyCollisionObject

From the Oblivion ConstructionSet Wiki
Revision as of 00:05, 21 January 2011 by imported>DragoonWraith
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(short:collID) NiAVObjectGetCollisionObject short:fromNifID short:fromBlockID short:toNifID short:toBlockID
(short:collID) NiAVObjGetCollObj short:nifID short:blockID

Copies the NiCollisionObject-derived block specified by fromBlockID, and uses it as the collision object of the NiAVObject-derived block specified by toBlockID. The fromNifID and toNifID may be the same to copy a collision object from one part of a nif to another, or different to copy the collision object of one nif to another. Copies the entire branch, rather than just the NiCollisionObject. Returns the new NiCollisionObject's blockID if successful, -1 otherwise.

See Also[edit | edit source]