Author Topic: Rotating door problem  (Read 3871 times)

Chomps123

  • Posts: 341
  • Turrets: +4/-15
Rotating door problem
« on: April 05, 2011, 11:10:41 pm »
Can someone tell me how to make the func_rotating_door on netradient rotate on the x or y axis

I know how make it rotate on the z axis.
Don't just live life with work.
Find some time every day to have some fun. ;)

Ingar

  • Tremulous Developers
  • *
  • Posts: 554
  • Turrets: +302/-7
    • Ingar's projects on the Web
Re: Rotating door problem
« Reply #1 on: April 06, 2011, 12:37:49 pm »
Can someone tell me how to make the func_rotating_door on netradient rotate on the x or y axis

Spawnflags:
to rotate around the X-axis, set spawnflag 32
to rotate around the Y-axis, set spawnflag 64

(obviously, don't set both)


Chomps123

  • Posts: 341
  • Turrets: +4/-15
Re: Rotating door problem (solved)
« Reply #2 on: April 06, 2011, 10:59:19 pm »
Thanks a bunch Ingar ;D
Don't just live life with work.
Find some time every day to have some fun. ;)

swamp-cecil

  • Posts: 774
  • Turrets: +80/-163
    • Tremulous
Re: Rotating door problem
« Reply #3 on: April 07, 2011, 02:36:02 am »
Just a question for you, Ingar. If you set the spawnflags of BOTH X and Y, would it rotate diagonally or just mess up?
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

Ingar

  • Tremulous Developers
  • *
  • Posts: 554
  • Turrets: +302/-7
    • Ingar's projects on the Web
Re: Rotating door problem
« Reply #4 on: April 07, 2011, 01:15:28 pm »
Just a question for you, Ingar. If you set the spawnflags of BOTH X and Y, would it rotate diagonally or just mess up?
I have never tested it, I assume the behaviour is undefined, meaning you could expect anything
from funky rotations to crashing the game.

For the sake of science, I did a quick test, set both spawnflags and the door seems to rotate around the X-axis only,
but undefined also means this behaviour could break at any point.