Tremulous Forum

Media => Mapping Center => Topic started by: Chomps123 on April 05, 2011, 11:10:41 pm

Title: Rotating door problem
Post by: Chomps123 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.
Title: Re: Rotating door problem
Post by: Ingar 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)

Title: Re: Rotating door problem (solved)
Post by: Chomps123 on April 06, 2011, 10:59:19 pm
Thanks a bunch Ingar ;D
Title: Re: Rotating door problem
Post by: swamp-cecil 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?
Title: Re: Rotating door problem
Post by: Ingar 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.