3d doors moving

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
Hell_Best
Posts: 53
Joined: Tue Jul 18, 2006 18:28

3d doors moving

Post 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!!
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

Go here
http://zdoom.org/zdkb/zdoomindex.html

scroll down to poly objects and look at the sliding door tutorial.
jflkbob
Posts: 68
Joined: Mon Jun 26, 2006 9:33
Location: behind you

Post 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]
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

Re: 3d doors moving

Post 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
TAtL, tU, aE
Hell_Best
Posts: 53
Joined: Tue Jul 18, 2006 18:28

Post by Hell_Best »

Thanks alot :) :)
Hell_Best
Posts: 53
Joined: Tue Jul 18, 2006 18:28

Post by Hell_Best »

Why doesn't it work when i rotate it??
Hell_Best
Posts: 53
Joined: Tue Jul 18, 2006 18:28

Post 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
Hell_Best
Posts: 53
Joined: Tue Jul 18, 2006 18:28

Post by Hell_Best »

i got it :) ty
Locked

Return to “GZDoom”