Little problem with a multi floor elevator
Posted: Mon Aug 20, 2007 1:21 am
I have had a problem that I have never had before. I am making an elevator that has multiple floors but the script doesnt seem to work. There are no errors in the console. Could someone help?
the headings (moveup & movedown) are setthreads on triggers that dont work. Somehow the game doesnt see the triggers or something.
My game is a little messed up that might be the problem
The computer doesnt see mohaa as installed but I can still play it and a whole bunch of other junk. So I need to reinstall the game but I dont have disc 2 and so on.
Code: Select all
movedown:
if (level.elepos == 1)
end
$elevator_cab speed 64
$down_trigger nottriggerable
local.position = level.elepos
$down_switch anim turn
$elevator_cab loopsound lighthouse_run
$elevator_cab moveto $("floor" + (local.position - 1))
$elevator_cab waitmove
$elevator_cab stoploopsound
$down_switch anim idle
level.elepos--
$down_trigger triggerable
end
moveup:
if (level.elepos == 5)
end
$elevator_cab speed 64
$up_trigger nottriggerable
local.position = level.elepos
$up_switch anim turn
$elevator_cab loopsound lighthouse_run
$elevator_cab moveto $("floor" + (local.position + 1))
$elevator_cab waitmove
$elevator_cab stoploopsound
$up_switch anim idle
level.elepos++
$up_trigger triggerable
end
My game is a little messed up that might be the problem
The computer doesnt see mohaa as installed but I can still play it and a whole bunch of other junk. So I need to reinstall the game but I dont have disc 2 and so on.