News:

Come Chat with us live! Learn how HERE!

Main Menu

Rotating door problem

Started by Chomps123, April 05, 2011, 11:10:41 PM

Chomps123

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

Quote from: 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

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

Don't just live life with work.
Find some time every day to have some fun. ;)

swamp-cecil

Just a question for you, Ingar. If you set the spawnflags of BOTH X and Y, would it rotate diagonally or just mess up?
Quote from: DraZiLoX on December 28, 2010, 11:31:28 AM
Quote from: Repatition on December 28, 2010, 02:30:30 AM
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

Ingar

Quote from: 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?
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.