Author Topic: Rotation on a timer?  (Read 2233 times)

Plague Bringer

  • Posts: 3815
  • Turrets: +147/-187
Rotation on a timer?
« on: December 23, 2007, 03:45:53 am »
Okay, just out of pure curiosity..

Say I have a room or hallway, and I want it to rotate to give the map a different layout. Can I have that room rotate 90 degrees, then stop for a period of time, and then rotate another 90 degrees, or would it be best to simply have a series of trains going up and down to switch the orientation of that room.
U R A Q T

Survivor

  • Posts: 1660
  • Turrets: +164/-159
Re: Rotation on a timer?
« Reply #1 on: December 23, 2007, 09:12:23 am »
Func_rotating doors in combination with timers can do this. Blocking by players however seriously fucks it up so safeguard against it by either crushing players, denying them access for the duration of the switch or killing them outright with a dmg trigger (my favorite sadistical option in fixing playerrelated bugs). Also note that doors can only switch between two positions so it might take some puzzling to get more than 2 variations but it should be possible by using alternating sequences. Trains of course allow more variations.
I’m busy. I’ll ignore you later.

Plague Bringer

  • Posts: 3815
  • Turrets: +147/-187
Re: Rotation on a timer?
« Reply #2 on: December 23, 2007, 02:34:54 pm »
Unfortunately since func_trains can't rotate, I'll have to have them moving up and down. Bah. I'll use trains.

I forgot to mention that the axis I wanted the rooms to move on was directly in the center, so the room would stay where it is, only the innards would change.
U R A Q T