Terran4999 0 Posted April 28, 2008 Hey I want to know how to get the AI to open a Door on a building. I tried searching the forum for answers and found none. I tried : <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this action ["opendoor", hanger] "hanger" being the name of the building. Any ideas Share this post Link to post Share on other sites
Pulverizer 1 Posted April 30, 2008 house animate ["Dvere1", 0] house animate ["Dvere1", 1] <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class Dum07: HousesDatadisk { model = "\O\Hous\domek_zluty"; animated = 1; class Animations { class Dvere1 { memory = 0; type = rotation; animPeriod = 1; selection = dvere1; axis = osa_dvere1; angle0 = 0; angle1 = 1.6; }; }; class UserActions { class OpenDoors1 { displayName = $STR_DN_OUT_O_DOOR; position = osa_dvere1; radius = 3; condition = "this animationPhase ""Dvere1"" >= 0.5"; statement = "this animate [""Dvere1"", 0]"; }; class CloseDoors1 { displayName = $STR_DN_OUT_C_DOOR; position = osa_dvere1; radius = 3; condition = "this animationPhase ""Dvere1"" < 0.5"; statement = "this animate [""Dvere1"", 1]"; }; }; }; Depends on the config of course. Some addons might used different names for doors so you have to look for the correct animation name. Share this post Link to post Share on other sites