Bbartram 0 Posted March 4, 2008 I'd like to be able to hide/unhide models. For example, when a building is destroyed, hide its original state and unhide its destroyed state. I've seen info on the hide animation type at http://community.bistudio.com/wiki/Model_Config But when I try to implement it, it crashes OpFlash. I set up a test object with a UserAction to execute the animation... not sure how to deal with "hideValue"... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class AnimTest : Fence { side=-1; model="\flextest1\animRot_test.p3d"; armor=5; scope=public; vehicleClass="Brian Temp"; displayName="Brian Anim Test"; threat[]={0.0, 0.0, 0.0}; //transportammo=300 //transportfuel=3000 icon="unknown_object"; mapSize=1; animated=1; class Animations { class animRot_test { type="hide"; hideValue=0; // want it to occur when anim is triggered animPeriod=0.00001; // instantaneous }; }; class UserActions { class AnimTest { displayName = "Anim Test"; position = "position"; radius = 3.0; condition = "this animationPhase ""animRot_test"" < 0.5"; statement = "this animate [""animRot_test"", 1]"; }; }; }; Any help would be much appreciated. Share this post Link to post Share on other sites
dm 9 Posted March 5, 2008 This is because the hide animation (and most of the functionality described in the wiki page) is for ArmA and not for OFP. Share this post Link to post Share on other sites