PMC websites shut down September 13th 2025 unless yearly web hosting fees are paid. Please Support PMC to help keep these websites online.

Enjoyed or found this pages content useful, please Support PMC to help me keep this web page online beyond september 13th 2025 when yearly web hosting fees are due.

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