Cyberdemon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Elevator Scripting Error?
 
Author
All times are GMT. The time now is 15:02. Post New Thread    Post A Reply
the iron hitman
Member


Posts: 330
Registered: 06-07


Hey all. Yes it's me posting yet again about scripting.

This time round though, it's an elevator.

(Note: I did look in another wad for reference as I've never built an elevator script before).

This is my script:-

int floor;

///Elevator Body
Script 12 (void)
{
if(floor == 1);
{
Elevator_LowerToNearest(59, 24);
floor = 0;
}
else
{
Elevator_RaiseToNearest(59, 24);
floor = 1;
}
}

///Red Panel Switch
Script 13 (void)
{
Elevator_MoveToFloor(59, 24);
floor = 0;
}


///Green Panel Switch
Script 14 (void)
{
Elevator_MoveToFloor(59, 24);
floor = 1;
}

In the part that says "else" every time I try compiling the script, the script doesn't seem to execute in game or compile.

Can someone point out where I've went wrong?
Thank you in advance :)

Old Post 06-20-08 22:35 #
the iron hitman is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
the iron hitman
Member


Posts: 330
Registered: 06-07


Never mind, I fixed it. But now the elevator doesn't move! Can you check my script this time?

int floor;

///Elevator Body
Script 12 (void)
{
if(floor == 1);
{
Elevator_LowerToNearest(59, 24);
floor = 0;
}
else
{
Elevator_RaiseToNearest(59, 24);
floor = 1;
}
}

///Red Panel Switch
Script 13 (void)
{
Elevator_MoveToFloor(59, 24);
floor = 0;
}


///Green Panel Switch
Script 14 (void)
{
Elevator_MoveToFloor(59, 24);
floor = 1;
}

I've gave the areas opposite the elevator (the rooms that the elevator take you to) the sector tag of 59 too. Can you help please?

Thanks in advance :)

PS: Sorry for double post

Old Post 06-22-08 00:15 #
the iron hitman is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
All times are GMT. The time now is 15:02. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Elevator Scripting Error?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory