Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Problem with a cog
Problem with a cog
2001-03-29, 2:51 PM #1
This cog open the door well, unless you jump around on the plates a lot. Any way to fix? Or just a result of C/S ??


# Jedi Knight Cog Script
#
# 00_AUTODOOR.COG
#
#
# Solo_Anakin

flags=0x240

symbols

thing door0 desc=door_object
thing door1 desc=door_object
surface plate0 desc=plate0
surface plate1 desc=plate1
flex movespeed desc=movespeed_of_door
flex delay desc=delay_before_close

message Entered
message Trigger
message DoStuff

end

# ........................................................................................

code

Entered:

if(IsMoving(door0) ) Return;
if(GetCurFrame(door0) != 0 ) Return;

SendTrigger(-1, 150, 0, 0, 0, 0);

Return;

# ........................................................................................

Trigger:

If(GetSourceRef() == 150) Call DoStuff;

Return;


# ........................................................................................

DoStuff:

MoveToFrame(door0, 1, movespeed);
MoveToFrame(door1, 1, movespeed);

Sleep(delay);

MoveToFrame(door0, 0, movespeed);
MoveToFrame(door1, 0, movespeed);

Return;
end
2001-03-30, 1:42 PM #2
uummm the only way i can think of is don't jump around alot......sorry i can't be of much help
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-04-01, 7:55 PM #3
Well I don't excatly understand the problem is but ....

I'm guessing the problem is to do with the entered message , try fiddling with it, maybe using an int message when it enters/exits

↑ Up to the top!