Jump to content
Sign in to follow this  
Terran4999

AI to open Door

Recommended Posts

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 huh.gif

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×