Re: Jeff Walters i need help on your cog


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

Posted by Jeff W. on June 29, 1998 at 20:03:20:

In Reply to: Jeff Walters i need help on your cog posted by hatter on June 29, 1998 at 13:37:51:

: could you some how edit your carpet cog and make it o when you jump on the thing it goes through the frames and then stops and does not go back to the first frame.
: it basicly is a one way elevator.

: please send it to me or post it
: hatter

Just remove the Timer code that is triggered at the end of the trip
So the edited code would be -


# Jedi Knight Cog Script
#
# jeff_elev.cog
#
# A Basic elevator Cog
# This elevator will go up to frame one, sleep, then come back down to frame 0
# when player enters elevator
#
# Modified by Jeff Walters
#
# This file was not made or supported by LucasArts Entertainment Company


symbols
message entered

thing elevator linkid=1

float start_wait=0.25
float sleeptime=2.0
float speed=4.0
end

## Code Section
code
entered:
if (IsThingMoving(elevator)) return;
if (GetCurFrame(elevator) != 0) return;
if (GetSenderId() != 1) return;

Sleep(start_wait); // pause before moving up

MoveToFrame(elevator, 1, speed);
MoveToFrame(elevator, 2, speed);
MoveToFrame(elevator, 3, speed);
MoveToFrame(elevator, 4, speed);
return;

end



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 ]