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 :)
|