How do I get doors working with a console?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
linksith
Command Sergeant Major
Command Sergeant Major
Posts: 284
Joined: Mon Jul 12, 2010 12:19 pm
Projects :: Waaay too many projects
Games I'm Playing :: too many
xbox live or psn: me has no xbox
Location: looking for a wifi connection

How do I get doors working with a console?

Post 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.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

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

Post 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
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

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

Post by RepSharpshooter »

Or look at the mustafar lua: the bridge going up and down.
User avatar
DarthFannel
Private Second Class
Posts: 60
Joined: Tue Jul 20, 2010 9:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City

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

Post 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?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

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

Post 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
Post Reply