Page 1 of 1

3d doors moving

Posted: Thu Jul 27, 2006 11:45
by Hell_Best
Hi i wonder how to make a door split in the middle and move out in the sides. Can someone send me a script that workes or a test map?

Will be happy for help!!

Posted: Thu Jul 27, 2006 12:28
by Enjay
Go here
http://zdoom.org/zdkb/zdoomindex.html

scroll down to poly objects and look at the sliding door tutorial.

Posted: Thu Jul 27, 2006 12:40
by jflkbob
This is a script for polyobject doors. They, not 3D doors, move side to side.

Code: Select all

#include "zcommon.acs"

script 1 (void)
{
PolyObj_DoorSlide(1, 32, 128, 124, 128);/*(polyobject#, speed, bit-angle, distance, delay time);*/
}
This script is for a polyobject set of two doors with a leingth of 128 each(ie bigdoor1, 2, 3, 4, exc). They will split at a speed of 32 and polyobjct 1 will move at 128(west).note: polyobj 2, if there is one, will move at 0, the opsoite bit angle of 128. Polyobjct 1 will move 124 map pixels, wait 128 ticks, and move back to its original position.
some scripting functions, more scripting functions, zdoom tutorial page. These pages are what my knowledge of (G)ZDoom are based off of.
[edit] Enjay you beat me to it! :) [/edit]

Re: 3d doors moving

Posted: Fri Jul 28, 2006 0:50
by NeoHippo
Hell_Best wrote:Hi i wonder how to make a door split in the middle and move out in the sides. Can someone send me a script that workes or a test map?

Will be happy for help!!
PolyObject Door_Slide TestMap

Posted: Fri Jul 28, 2006 10:50
by Hell_Best
Thanks alot :) :)

Posted: Fri Jul 28, 2006 11:32
by Hell_Best
Why doesn't it work when i rotate it??

Posted: Fri Jul 28, 2006 11:34
by Hell_Best
i don't know how i can show what i mean. tried to put i test map but it did'nt work

Posted: Fri Jul 28, 2006 11:46
by Hell_Best
i got it :) ty