Author Topic: How to make multiple func_trains activate simultaeneously  (Read 2836 times)

Piper802

  • Posts: 56
  • Turrets: +2/-2
How to make multiple func_trains activate simultaeneously
« on: June 08, 2009, 03:04:10 am »
I'm trying to make a pulse style elevator, and it's working for the most part. The only thing is that I'd like to make other func_trains move WITH the elevator platform when you press the button (Such as brushes that are on the elevator platform).

This chart, I believe made by Taiyo, helps explain how the elevator works:
http://farm2.static.flickr.com/1246/533208389_5cb662a19f_o.png
How I THINK the elevator works is: the buttons triggers two target_delay entities, which have different "wait" values so that it will trigger the elevator func_train twice (Once to activate it from its "resting" position, and a second time to get it moving towards the next path_corner). So that it can move up and down.

So, my problem is that if I give the objects that are resting on the elevator platform the same targetname as the elevator (Which is "elev1"), so that they can be activated by the button with the elevator, I'd have to target the object to the same path_corner as the elevator platform. And the object resting on my platform does not have the same origin as the elevator platform, making it move up and down in the wrong spot.

An idea I had was to somehow make the additional objects func_door's so that I can use the "team" key to make them all move at the same time. The only problem with that is that I wouldn't know how to control how high/low the func_door moves, or how to control when it closes (comes back down)

Sorry if you don't understand what I'm saying... It's hard to put something this complicated into words lol.
« Last Edit: June 08, 2009, 04:48:55 am by Piper802 »

CreatureofHell

  • Posts: 2422
  • Turrets: +430/-126
    • Tremtopia
Re: How to make multiple func_trains activate simultaeneously
« Reply #1 on: June 08, 2009, 04:16:07 pm »
If you were using a func_door the height would be governed by lip(I assume) but using func_doors is a bad idea because they make spectators 'teleport' around the map. Could you make all the lift brushed a func_group as well so that they all stay together?
{NoS}StalKer
Quote
<Timbo> posting on the trem forums rarely results in anything good

seeeker

  • Posts: 122
  • Turrets: +19/-5
Re: How to make multiple func_trains activate simultaeneously
« Reply #2 on: June 08, 2009, 06:37:30 pm »
[func_train
targetname train0
]

[func_train
targetname train1
]

[target_relay
target train0
targetname traintogglers
]

[target_relay
target train1
targetname traintogglers
]

[func_button
target traintogglers
]

the basic idea =D

==Troy==

  • Posts: 440
  • Turrets: +65/-67
Re: How to make multiple func_trains activate simultaeneously
« Reply #3 on: June 09, 2009, 07:06:41 pm »
just bundle the whole thing together. I.e. your elevator = platform + boxes + all other stuff as a single entity