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 symbols message touched thing door flex sleep end code # Code Down Here touched: timer:
# 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
message timer
int active=0 local
// 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;
// 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: