Hawke1992 0 Posted April 24, 2008 Hey again people. I want to know how to make a custom made animation source in the config.cpp I've been trying to get a ramp on a aircraft to move, i've tryed nearly every single source E.g. Damper, altRadar. anyone know? Hawke. Share this post Link to post Share on other sites
[aps]gnat 28 Posted April 25, 2008 In your cfgModel put this for example; <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ..... class Animations { ............. class cargodoor { type="rotation"; // initPhase=1; // source = "damper"; source = "MoveX1"; animPeriod=2.5; sourceAddress = "clamp"; selection="cargodoor"; axis="osa cargodoor"; memory = true; minValue = 0; maxValue = 1; angle0=0; angle1=-0.488690; }; In CFGVehicle <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class AnimationSources: AnimationSources { class MoveX1 // Should be the same as your selection name. { source = "user"; //The controller is defined as a user animation. animPeriod = 10; //The animation period used for this controller. initPhase=0; //Initial phase when object is created. 0 = CLOSED }; }; <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class UserActions { class CargoDoor_OpenP { displayName="Open cargodoor"; position="pilotcontrol"; onlyforplayer=0; radius=0.5; condition="this animationPhase ""cargodoor_down"" < 0.5"; statement="this animate [""cargodoor_down"",1]; this animate [""cargodoor_up"",1]"; }; Share this post Link to post Share on other sites