arma2:modeling:user_animation
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| arma2:modeling:user_animation [2011/06/30 18:10] – created user_animation initial page. snakeman | arma2:modeling:user_animation [2024/08/01 22:06] (current) – links added. snakeman | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== User Animation Tutorial ====== | + | ====== |
| + | |||
| + | [[https:// | ||
| Primary target - Vehicles | Primary target - Vehicles | ||
| - | This tutorial is to show the basics of how to animate a section of a vehicle model with a USER action. Specific subject pictures are a aeroplane | + | This tutorial is to show the basics of how to animate a section of a vehicle model with a USER action. Specific subject pictures are a aircraft |
| Line 134: | Line 136: | ||
| RADIUS is the radius in meters around the ACTION_RAMP1 points that players will see the action in menu. | RADIUS is the radius in meters around the ACTION_RAMP1 points that players will see the action in menu. | ||
| + | |||
| + | |||
| + | ====== House Door ====== | ||
| + | |||
| + | **model.cfg**: | ||
| + | <code cpp> | ||
| + | class cfgSkeletons | ||
| + | |||
| + | class VTE_tigercage_Skeleton: | ||
| + | { | ||
| + | skeletonInherit = " | ||
| + | skeletonBones[] = | ||
| + | { | ||
| + | " | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | class CfgModels | ||
| + | |||
| + | class VTE_tigercage: | ||
| + | { | ||
| + | skeletonName = " | ||
| + | sections[] = {}; | ||
| + | |||
| + | class Animations | ||
| + | { | ||
| + | class vte_tigercage_door: | ||
| + | { | ||
| + | axis = " | ||
| + | selection = " | ||
| + | }; | ||
| + | }; | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | **config.cpp**: | ||
| + | <code cpp> | ||
| + | class AnimationSources | ||
| + | { | ||
| + | class vte_tigercage_door | ||
| + | { | ||
| + | animPeriod = 1; | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | class UserActions | ||
| + | { | ||
| + | class OpenTigerCage_door | ||
| + | { | ||
| + | displayName = "Open Door"; | ||
| + | position = " | ||
| + | radius = 4; | ||
| + | OnlyForPlayer = true; | ||
| + | condition = "this animationPhase "" | ||
| + | statement = "this animate ["" | ||
| + | }; | ||
| + | |||
| + | class CloseTigerCage_door: | ||
| + | { | ||
| + | displayName = "Close Door"; | ||
| + | condition = "this animationPhase "" | ||
| + | statement = "this animate ["" | ||
| + | }; | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | **Summary** | ||
| + | |||
| + | VTE_tg1_door is the selection in Resolution LOD. | ||
| + | |||
| + | axis_door is the memory point in Memory LOD. | ||
| + | |||
| + | **Note about Geometry LOD** | ||
| + | |||
| + | When you animate a door, in Geometry LOD it has to have ComponentXX and also the selection name like in our above example VTE_tg1_door, | ||
| + | |||
arma2/modeling/user_animation.1309457452.txt.gz · Last modified: 2011/06/30 18:10 by snakeman
