u have to work in SED for change the z of the elevator.
var nbfloor=1;
function Felevator()
{
checkfloor:
while (nbfloor==floor){wait(1);}
if (floor==1){elevator.z=0;}
if (floor==2){elevator.z=50;}
if (floor==3}{elevator.z=100;}
nbfloor=floor;
goto checkfloor;
}
action elevator
{
my.event=Felevator();
}
then u put the action elevator to your elevator :|
im noob but i think its ~this way :|
i know that use goto is not good but i try to help :|
if u haven't already touch to SED, u should go look the tutorial :|