Question about control consoles

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
baumerindustries
Lance Corporal
Posts: 96
Joined: Mon Apr 11, 2011 8:24 am
Games I'm Playing :: Bf2 EAW EAWFOC[SI]
xbox live or psn: No gamertag set
Location: In front of my english vocab and translating my confused thinkings into English....

Question about control consoles

Post by baumerindustries »

Hi, please note I'm german.
Maybe you have played the Battle-Arena 2.0 and there are control consoles, which alow you to make some things appear like at the pool. My question:
I want to make this for a space map, so you shoot at a console and then there apears a barrier, which closes the hangar. If you shoot again at it the barrier is away. I know it doesn't look good but I want it like this.
Hope you understand what I mean
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Question about control consoles

Post by Bob »

open the map in ZE, place the given door inside the ship (somewhere where it can't be seen), make a animation for it (how to is in the documentation), then place your console somewhere and add to your LUA:

Code: Select all

             OnObjectKill(
    function(object, killer)
    if GetEntityName(object) == "OBJECTNAME" then
    PlayAnimation("ANIMGROUPNAME")
    end
    end
    )
replace the OBJECTNAME with the name of your console and ANIMGROUPNAME with the name of the door's animgroupname.
I just don't know how to make this the other way around again...
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: Question about control consoles

Post by DarthD.U.C.K. »

use "OnObjectRepair" for the other way arund, the syntax is the same
by the way, here is a topic discussing exactly what you asked for: Trigger animation on destruction of object? (FAQ)
it cant be just found by searching, its linked in the everythingyouneedthread aswell.
baumerindustries
Lance Corporal
Posts: 96
Joined: Mon Apr 11, 2011 8:24 am
Games I'm Playing :: Bf2 EAW EAWFOC[SI]
xbox live or psn: No gamertag set
Location: In front of my english vocab and translating my confused thinkings into English....

Re: Question about control consoles

Post by baumerindustries »

is there anywhere a tutorial about animationgroups? thx for the rest
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Question about control consoles

Post by AQT »

baumerindustries
Lance Corporal
Posts: 96
Joined: Mon Apr 11, 2011 8:24 am
Games I'm Playing :: Bf2 EAW EAWFOC[SI]
xbox live or psn: No gamertag set
Location: In front of my english vocab and translating my confused thinkings into English....

Re: Question about control consoles

Post by baumerindustries »

sorry all, but there are so many topics...
ok thank you for your help
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: Question about control consoles

Post by DarthD.U.C.K. »

baumerindustries wrote:sorry all, but there are so many topics...
that is the reason for the everythingyouneedthread - it is a list of the most important problems and explanations so that you dont have to search manually for them.
baumerindustries
Lance Corporal
Posts: 96
Joined: Mon Apr 11, 2011 8:24 am
Games I'm Playing :: Bf2 EAW EAWFOC[SI]
xbox live or psn: No gamertag set
Location: In front of my english vocab and translating my confused thinkings into English....

Re: Question about control consoles

Post by baumerindustries »

Do Animations work when they only take 0.01 sec?
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Question about control consoles

Post by Bob »

you could take the pop transistion instead of the linear transition, but this should work, too.
why are you not making a normal doorclose anim?
baumerindustries
Lance Corporal
Posts: 96
Joined: Mon Apr 11, 2011 8:24 am
Games I'm Playing :: Bf2 EAW EAWFOC[SI]
xbox live or psn: No gamertag set
Location: In front of my english vocab and translating my confused thinkings into English....

Re: Question about control consoles

Post by baumerindustries »

i dont know normal door Animations. so this is.p the only thing i thought of as the Idea came to me. could you explain your way or give me a link?
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Question about control consoles

Post by Bob »

what did you animate yet and wich ship and wich door are you using?
baumerindustries
Lance Corporal
Posts: 96
Joined: Mon Apr 11, 2011 8:24 am
Games I'm Playing :: Bf2 EAW EAWFOC[SI]
xbox live or psn: No gamertag set
Location: In front of my english vocab and translating my confused thinkings into English....

Re: Question about control consoles

Post by baumerindustries »

this is MY first Animation and i use the cis ship and the spa_prop_cisdoor
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: Question about control consoles

Post by DarthD.U.C.K. »

bob meant with "normal door animation" that the doorparts move to the side like automatic doors opposed to something moving just 0.01 seconds.
baumerindustries
Lance Corporal
Posts: 96
Joined: Mon Apr 11, 2011 8:24 am
Games I'm Playing :: Bf2 EAW EAWFOC[SI]
xbox live or psn: No gamertag set
Location: In front of my english vocab and translating my confused thinkings into English....

Re: Question about control consoles

Post by baumerindustries »

i want it like this:
you shoot at the Console.
the hangar doors appears
you repair it , the door disappears.
I hide it in the capital ship while Its unused.
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: Question about control consoles

Post by DarthD.U.C.K. »

if you want the door simply to disappear you can "kill" it when the console is destroyed, instead of "Playanimation" you would use "KillObject("doorname)"
in order to be able to kill the door, you have to give it "destructablebuilding" as class label in the odf and a maxhealth.
baumerindustries
Lance Corporal
Posts: 96
Joined: Mon Apr 11, 2011 8:24 am
Games I'm Playing :: Bf2 EAW EAWFOC[SI]
xbox live or psn: No gamertag set
Location: In front of my english vocab and translating my confused thinkings into English....

Re: Question about control consoles

Post by baumerindustries »

oh thx that makes it a lot easier. ok thank you you two!
Post Reply