Hi @ll . I have problems with my config.cpp . I have defined new animation in rtm but it's not working. I have no error messages. Just if i press ChangeRotor action the engines will not rotate
.
This is my .cpp :
// some basic defines
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
// type scope
#define private 0
#define protected 1
#define public 2
class CfgPatches
{
class T_Osprey
{
units[] = {T_Osprey};
weapons[] = {};
requiredVersion = 1.91;
};
};
#define SPEED_STATIC 1e10
class CfgMovesMC
{
class Default {};
class States
{
class Ospreyr11: Default
{
file="\T_Osprey\ospreyr1.rtm";
speed=SPEED_STATIC;
looped=0;
};
class Ospreyr22: Default
{
file="\T_Osprey\ospreyr2.rtm";
speed=SPEED_STATIC;
looped=0;
};
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Air: AllVehicles {};
class Helicopter: Air {};
class T_Osprey: Helicopter
{
vehicleClass = "Air";
Side=1;
crew="SoldierWPilot";
accuracy=0.30;
DisplayName = "T_Osprey";
mainRotorSpeed=5.000000;
backRotorSpeed=5.000000;
typicalCargo[]={"Soldier","Soldier","SoldierLAW","SoldierLAW"};
scope=2;
driverAction="ManActUH60Pilot";
gunnerAction="ManActUH60Pilot";
gunnerUsesPilotView=1;
soundEngine[]={"\T_Osprey\osprey.wss",0.316228,1};
Model="\T_Osprey\osprey.p3d";
transportSoldier = 25;
maxSpeed=500;
armor=110;
weapons[]={};
magazines[]={};
nameSound="blackhawk";
fov=0.5;
cost=10000000;
type=VAir;
threat[]={0.1, 0.8, 1.0};
animated=true;
class Animations
{
class doors
{
type="rotation";
animPeriod=3;
selection="doors";
axis="doorsoska";
angle0=0.100000;
angle1=0.000000;
};
class aramp
{
type="rotation";
animPeriod=3;
selection="theramp";
axis="rampaxis";
angle0=0.000000;
angle1=0.600000;
};
};
class UserActions
{
class ChangeRotorEngine1
{
displayName="ChangeRotor";
position="ChangeRotor";
radius=18100;
condition="this animationPhase ""T_Osprey"" >= 0.5";
statement="this animate [""Ospreyr22"", 1] ; this animate [""Ospreyr11"", 1]";
};
class ChangeRotorEngine2
{
displayName="ChangeRotorBack";
position="ChangeRotor";
radius=18100;
condition="this animationPhase ""T_Osprey"" < 0.5";
statement="this animate [""Ospreyr22"", 1] ; this animate [""Ospreyr11"", 1]";
};
class Open
{
displayName="OpenDoors";
position="doors";
radius=2.5;
condition="this animationPhase ""doors"" < 0.5";
statement="this animate [""doors"", 1]";
};
class Close
{
displayName="CloseDoors";
position="doors";
radius=2.5;
condition="this animationPhase ""doors"" >= 0.5";
statement="this animate [""doors"", 0]";
};
class Openramp
{
displayName="OpenRamp";
position="doors";
radius=2.5;
condition="this animationPhase ""aramp"" < 0.5";
statement="this animate [""aramp"", 1]";
};
class Closeramp
{
displayName="CloseRamp";
position="doors";
radius=2.5;
condition="this animationPhase ""aramp"" >= 0.5";
statement="this animate [""aramp"", 0]";
};
};
};
};