ok i made a carousell
it suposed to spin but why my unit doesn't rotate with the carousell ??
is it possible to animate "proxy:cargo" with the other rotating object, using switch ?
it acts like a car with 1 ( temporary ) cargo unit space.
HELP ME please
#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
#define private 0
#define protected 1
#define public 2
class CfgPatches
{
class lrd_carousell
{
units[] = {lrd_carousell};
weapons[] = {};
requiredVersion = 1.85;
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class LandVehicle: Land {};
class Car: LandVehicle {};
class lrd_carousell: Car
{
model="\lrd_carousell\lrd_carousell";
armor=2000;
scope=2;
displayName="lrd_carousell";
crew="Civilian2";
hasDriver=0;
transportSoldier=1;
transportAmmo=0;
hasgunner=0;
cargoAction[]={"ManActJeepCoDriver"};
typicalCargo[]={"Civilian2","Civilian3"};
animated=1;
class Animations
{
class ani_carousell
{
type="rotation";
animPeriod=6000;
selection="carousell";
axis="carousell_axis";
angle0=0;
angle1=-14400;
};
};
class UserActions
{
class switchrunbackward
{
displayName="run carousell backward";
position="pos_carousell";
radius=2.000000;
condition="this animationPhase ""ani_carousell"" < 0.5";
statement="this animate [""ani_carousell"", 0]";
};
class switchrunforward
{
displayName="run carousell forward";
position="pos_carousell";
radius=2.000000;
condition="this animationPhase ""ani_carousell"" < 0.5";
statement="this animate [""ani_carousell"", 1]";
};
};
};
};
class CfgNonAIVehicles
{
class ProxyCrew {};
class ProxyDriver: ProxyCrew {};
class ProxyTrabiDriver: ProxyDriver {};
};