Elevator

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
JROD
Private Recruit
Posts: 19
Joined: Wed Feb 11, 2009 8:00 pm

Elevator

Post by JROD »

I am making this map that is a bunch of dueling arenas that are above each other, so that way many duels can commence at the same time, and I am absolutely clueless on how to make an elevator that can move up and down between the four. Any help would be greatly appreciated. Thanks.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Elevator

Post by YaNkFaN »

i was thinking about an elevator and here is one idea i came up with it's a little difficult and complicated but it may work

you have a platform
you have an animation where the platform is moved up
you have 2 regions one at the top of the elevator one at the bottem
you make a script that tells the game that when the player enters the region the animation plays and the platform moves up. The platform will stay there until the player comes back into the second region and the animation rewinds bringing the player down.

another simpler way is to make an animation that's slow and just loops so the platform is constantly moving up and down and leave it up to human intelligence to use it..

i haven't figured out a way to have AI properly use an elevator

hope this helps

o and welcome to GT
JROD
Private Recruit
Posts: 19
Joined: Wed Feb 11, 2009 8:00 pm

Re: Elevator

Post by JROD »

YaNkFaN wrote:i was thinking about an elevator and here is one idea i came up with it's a little difficult and complicated but it may work

you have a platform
you have an animation where the platform is moved up
you have 2 regions one at the top of the elevator one at the bottem
you make a script that tells the game that when the player enters the region the animation plays and the platform moves up. The platform will stay there until the player comes back into the second region and the animation rewinds bringing the player down.

another simpler way is to make an animation that's slow and just loops so the platform is constantly moving up and down and leave it up to human intelligence to use it..

i haven't figured out a way to have AI properly use an elevator

hope this helps

o and welcome to GT
Thanks for the welcome. I kinda thought of most of that; its the doing that is the problem. Maybe if someone could post a tutorial or something... Its not in the docs, i know that.
-------------------------------------------------->EDIT<-------------------------------------------------------
Sorry guys, I guess that doc slipped past me :oops: Thanks for pointing it out, Mr. Duck.
Last edited by JROD on Thu Feb 19, 2009 3:54 pm, edited 1 time in total.
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: Elevator

Post by DarthD.U.C.K. »

it is covered in the "procedural animation guide.doc"
JROD
Private Recruit
Posts: 19
Joined: Wed Feb 11, 2009 8:00 pm

Re: Elevator

Post by JROD »

Ok. Now the elevator moves up and down like I want it to, but it won't let me ride it. If I jump on it it acts as if I'm jumping into a stage boundary, and if I run under it I get "teleported" back the way I came when it comes down. Any suggestions? And yes, I have the build accurate object collision box checked.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Elevator

Post by YaNkFaN »

that just may be the game engine i've never tried running into an animated object so i'm not sure if that's you or if that's just a hardcoded game issue
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Elevator

Post by Maveritchell »

JROD wrote:If I jump on it it acts as if I'm jumping into a stage boundary,
What?

Aside from not knowing what you mean by the above, if you have an object that moves too quickly into your character, you will fall through.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Elevator

Post by Fiodis »

What? How does it act? What is a stage boundary?

If you are sucked through it, slow it down. I've run plenty of ZE-animated objects, elavators are a piece of cupcake. Totally possible, don't worry.

And welcome to GT!

There are alternatives to elavators, which are a bit more complex but which you may want to consider:
  • Teleporters
  • Linked Turrets (Like on capital ships)
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Elevator

Post by YaNkFaN »

i think he wants just a platform that moves him from one level of a map to another level
JROD
Private Recruit
Posts: 19
Joined: Wed Feb 11, 2009 8:00 pm

Re: Elevator

Post by JROD »

YaNkFaN wrote:i think he wants just a platform that moves him from one level of a map to another level
Yes. And by stage boundary I mean like if your running into the boundary walls on mos eisley. And its not the game engine, since the LOZ mod has several elevators. I'm using a really big kamino... "object" that is very tall, so I'm having it go down so a good part of it actually goes into the ground. Could that be a problem?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Elevator

Post by Fiodis »

No, but the object you're using might be. Which is it? Perhaps more importantly, does it have a msh.option file associated with it? If yes, does the file contain the line -nocollision? If yes, remove the line.


EDIT - Lol @ "Mr. Duck"
Post Reply