Difference between revisions of "Anim Object"

49 bytes removed ,  23:07, 21 January 2011
→‎Usage: Updated directions - the old ones still weren't quite right.
imported>TheMagician
(linked to idle animations)
imported>Arthmoor
(→‎Usage: Updated directions - the old ones still weren't quite right.)
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:


* To use an AnimObject in game, first create the mesh according to the below specifications:
* To use an AnimObject in game, first create the mesh according to the below specifications:
{|border="1" cellpadding="5" cellspacing="0"
|-
! style="background:#efefef;" colspan=1 | Name
! style="background:#efefef;" | Value
! style="background:#efefef;" | Data
|-
|BSXFlags
|BSX
|Flags: 3
|-
|NiStringExtraData
|Bone to attach to
|Name: PRN
|-
|NiStringExtraData
|Misc Havok data
|Name: UPB
|-
|}


* Most often the node to attach an object to is the "Weapon" node. The havok data can be obtained from a similar mesh, i.e., middleclasspewtermug03.nif. You should also create an ordinary clutter object to be the target of your AI package.  
[[Image:Animobjpic.png]]
* Then create an idle animation in the Idle Animations screen with at least one GetIsItemUsed condition pointing to your clutter object.  
 
* Next create the AnimObject and link it to your new idle animation using the bottom drop down box when editing your AnimObject. Finally create an AI package that directs your actor to use your clutter item.
* There is no need to attach BSX flags or havok collision data to the new mesh.
* Most often the node to attach an object to is the "Weapon" node. You can copy this data from an object in Data\meshes\idleobjects if you want. You may need to rotate your mesh along the axis lines in order for it to look right while being used.
* You should then create a normal clutter mesh, with havok collision, to be used as the target item for your AI package.
* Then create an idle animation in the Idle Animations screen with at least one GetIsItemUsed condition pointing to your clutter object.
* Next create the AnimObject and link it to your new idle animation using the bottom drop down box when editing your AnimObject.
* Finally, create an AI package that directs your actor to use your clutter item.


== See Also ==
== See Also ==
*[[Idle Animations]]
*[[Idle Animations]]
 
*[[UseItemAt Package]]


[[Category: Animations]]
[[Category: Animations]]
[[Category: Miscellaneous]]
[[Category: Miscellaneous]]
Anonymous user