jezpops 0 Posted March 2, 2008 Can anyone point me to a tutorial on how to make animated doors for custom buildings, cant find anything anywhere Share this post Link to post Share on other sites
Linker Split 0 Posted March 2, 2008 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches { class your_addon { units[] = {"nameofyouraddon"}; weapons[] = {}; requiredVersion = 1; requiredAddons[] = {}; version = 1.08; }; }; class cfgSkeletons { class your_skeleton_name { isDiscrete=1; skeletonInherit = ""; skeletonBones[]= { "selection_of_door","", }; }; }; class cfgmodels { class House; class your_house: House { skeletonName = "your_skeleton_name"; sectionsInherit=""; sections[]={doorf}; class Animations { class dooranim { type="rotation"; animPeriod=1; source="selection_of_door"; selection="selection_of_door"; minvalue=0; maxvalue=1; axis="axis_of_door"; angle0=0; angle1=1.56; }; }; }; }; class CfgVehicleClasses { class your_vehicle_class { displayName = "your addon class name"; }; }; class CfgVehicles { class HouseBase; class House: HouseBase { class DestructionEffects; }; class your_house_class: House { vehicleClass = "your_vehicle_class"; displayName = "door"; model = "\yourpath\yourmodel.p3d"; scope = 2; armor = 800; mapSize = 1; destrType="DestructTree"; icon = "\yourpath\youricon.paa"; soundDammage[] = {"\yourpath\yoursound.ogg",0.316228,1}; class AnimationSources { class selection_of_door { source = "user"; animPeriod = 0.9; initPhase=0; }; }; class UserActions { class Open_Gate { displayName="Open Door"; position="position_in_memory_LOD"; radius=2; onlyForPlayer = false; condition="this animationPhase ""dooranim"" < 0.5"; statement="this animate [""dooranim"", 1]"; }; class Close_Gate { displayName="Close Door"; position="position_in_memory_LOD"; radius=2; onlyForplayer = false; condition="this animationPhase ""dooranim"" > 0.5"; statement="this animate [""dooranim"",0]"; }; }; }; }; change the names (like your_addon,selection_of_door,your_skeleton_name) Share this post Link to post Share on other sites
jezpops 0 Posted March 2, 2008 Thanks mate, another prob i have is with making geo lod convex - it always seems to fill up the door space, any tips on a easier way Share this post Link to post Share on other sites