NiAVObjectCopyCollisionObject

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 AlsoEdit