Posted by JED Master on May 25, 1998 at 22:18:08:
In Reply to: 00_elevcall.cog posted by Kenobi on May 25, 1998 at 21:37:05:
The floor level is actually whatever frame the elevator should move to. A good thing to do would be to write your own. It would be rather simple. Like so:
# Jedi Knight Cog ScriptSymbols
surface switch0
int frame_top
int frame_org Local
thing elev
flex speed
flex delay
message activated
endcode
activated:
Frame_org = GetCurrentFrame(elev);
MoveToFrame(elev, Frame_top, speed);
sleep(delay);
MoveToFrame(elev, Frame_org, speed);
return;
end