Page 1 of 1

How do I get doors working with a console?

Posted: Fri Aug 06, 2010 11:47 am
by linksith
Hi, in one of my mods I could not get the Kashyyyk sea wall door to open when I destroyed the console and I wondered about using a door in space. So how could I get a door to open\close when a console is repaired\destroyed? Thanks.

Re: How do I get doors working with a console?

Posted: Fri Aug 06, 2010 12:31 pm
by DarthD.U.C.K.
you would trigger an animation via lua if the consoleis destroyed, i think in the deathstar luas you can find some good references

Re: How do I get doors working with a console?

Posted: Fri Aug 06, 2010 12:34 pm
by RepSharpshooter
Or look at the mustafar lua: the bridge going up and down.

Re: How do I get doors working with a console?

Posted: Fri Aug 06, 2010 4:17 pm
by DarthFannel
Just to not make another topic with the same motif, can you make a door that opens only for friendly units usually unless you destroy something like a panel?

Correct me if I am wrong, I need a piece of code from the space campaign LUA, and possibily the code from the bridge panels in the Death Star... right?

Re: How do I get doors working with a console?

Posted: Sat Aug 07, 2010 5:01 am
by DarthD.U.C.K.
about the onlyopenforallies: that would require some more complex luacoding, i suppose you would have to create a region and check on which team the unit is when it enters the region and then play the dooropeninganimation dependend on the outcome

why space, are there panels too?
you would need a code similiar to the panelcodes on the deathstar or the bridgecode from mustafar