Re: 00_elevcall.cog


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

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 Script

Symbols
surface switch0
int frame_top
int frame_org Local
thing elev
flex speed
flex delay
message activated
end

code
activated:
Frame_org = GetCurrentFrame(elev);
MoveToFrame(elev, Frame_top, speed);
sleep(delay);
MoveToFrame(elev, Frame_org, speed);
return;
end


That cog will move the elevator to the frame specified by Frame_top, then back to wherever it was before. It doesn't play the sound, and you may want to cheack my coding with somebody.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]