Can anyone see the problem?
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">/*
Animation tutorial (#9) by BRSSEB, 23.07.03
*/
#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 BRSSEB_TUTMODEL
{
units[] = {JFWHutstilts1};
weapons[] = {};
requiredVersion = 1.85;
};
};
class CfgVehicles
{
class All{};
class Static: All{};
class Building: Static{};
class Strategic: Building{};
class Fortress1: Strategic{};
class JFWHutstilts1 : Fortress1
{
model="\JFWhutstilts1\JFWhutstilts1 4;;
armor=900;
scope=2;
displayName="Hooch, Stilts 1";
animated=1;
class Animations
{
// Door animation class
class ani_Door
{
type="rotation";
animPeriod=5;
selection="door";
axis="door_axis";
angle0=0;
angle1=-1.5;
};
};
}; /* Animation class end */
// Useraction class
class UserActions
{
class OpenDoor
{
displayName="Open Door";
position="pos1";
radius=2.000000;
condition="this animationPhase ""ani_Door"" < 0.5";
statement="this animate [""ani_Door"", 1]";
};
class CloseDoor
{
displayName="Close Door";
position="pos1";
radius=2.000000;
condition="this animationPhase ""ani_Door"" >= 0.5";
statement="this animate [""ani_Door"", 0]";
};
}; /* Useraction class end */
}; /* Model class end*/
}; /* CfgVehicle class end*/[/QUOTE]
Thanks in advance.![]()
HOME
Reply With Quote