User Tools

Site Tools


arma:modeling:static_object_animation

ArmA 1 Static Object Animations

ArmA 1 Forum, ArmA 1 Home, ArmA 1 Config, ArmA 1 Tools, ArmA 1 File Formats, ArmA 1 Missions, ArmA 1 3D Modeling, ArmA 1 Terrain, ArmA 1 Texturing, ArmA 1 Scripting

ArmA 1 aka Armed Assault (ArmA)

Static Object Animations

Here is guide to show you how to animate static objects which are placed on the WRP terrains or are available in mission editor as objects.

Usually these objects are buildings which has doors that players can open and close.

model.cfg

cfgSkeletons

	class Default;
 
	class VTE_house: Default
	{
		skeletonInherit = "Default";
		skeletonBones[] =
		{
			"VTE_cpdoor1", ""
		};
	};

cfgModels

	class VTE_cmdpost: Default
	{
		skeletonName = "VTE_house";
 
		class animations
		{
			class vte_cmdpostdoor1: Rotation
			{
				selection = "vte_cpdoor1";
				axis = "vte_cpdoor1_axis";
				angle1 = 1.8;
			};
		};
	};

config.cpp

		animated = true;
 
		class AnimationSources
		{
			class Opencmdpostdoor1
			{
				animPeriod = 1;
			};
 
			class Closecmdpostdoor1: Opencmdpostdoor1{};
		};
 
		class UserActions
		{
			class Opencmdpostdoor1
			{
				displayName = "open door";
				position = "vte_cpdoor1_pos";
				radius = 2.5;
				OnlyForPlayer = true;
				condition = "this animationPhase ""vte_cmdpostdoor1"" < 0.5";
				statement = "this animate [""vte_cmdpostdoor1"", 1];";
			};
 
			class Closecmdpostdoor1: Opencmdpostdoor1
			{
				displayName = "close door";
				condition = "this animationPhase ""vte_cmdpostdoor1"" >= 0.5";
				statement = "this animate [""vte_cmdpostdoor1"", 0];";
			};
		};
arma/modeling/static_object_animation.txt · Last modified: 2024/08/01 10:01 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.