It is simple. PS: Also wrote this one for it.


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

Posted by Element_Greven on December 03, 1998 at 16:58:11:

In Reply to: It is very simple... posted by Balrog_Butcher on December 03, 1998 at 16:18:02:

Here's MP compatible one...

# 11/23
# Grevenilvec topace@flash.net
#
# Trapdoor
#
# If the trapdoor is touched (ie: stepped on) it will open from frame 0
# to frame 1. After a certain time, it will close.
# This COG IS NOT made OR supported BY LucasArts

symbols

message touched
message timer

thing door

flex sleep
int active=0 local

end

code

# Code Down Here

touched:
// Is victim touching door
If(GetSenderRef()!=door) return;
// Test active
If(active!=0) return;
// Make active
active=1;
// Move to next frame
MoveToFrame(door, 1, speed);
// Wait for a bit
SetTimer(sleep);
return;

timer:
// Move to previous frame
MoveToFrame(door, 0, speed);
// Make non active
active=0;
return;

end


Hope this helps too..also
you can download it from
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 ]