there is a problem with my cog,
basicaly, it does nothing when it is ment to move the framesobjcts
here is the code:
# Jedi Knight Cog Script
#
# Filename.COG
#
# Description
#
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
thing trns_frame1
thing trns_frame2
thing trns_frame3
thing trns_frame4
thing trns_frame5
thing trns_frame6
thing trns_frame7
thing trns_frame8
thing trns_frame9
flex eject_speed
flex move_speed
surface move_out_switch linkid=1
surface move_in_switch linkid=2
surface eject_switch linkid=3
sound activate_sound
message activated
end
# ========================================================================================
code
activated:
if ( GetSenderId() = 1 )
{
MoveToFrame(trns_frame1, 0, move_speed);
MoveToFrame(trns_frame2, 0, move_speed);
MoveToFrame(trns_frame3, 0, move_speed);
MoveToFrame(trns_frame4, 0, move_speed);
MoveToFrame(trns_frame5, 0, move_speed);
MoveToFrame(trns_frame6, 0, move_speed);
MoveToFrame(trns_frame7, 0, move_speed);
MoveToFrame(trns_frame8, 0, move_speed);
MoveToFrame(trns_frame9, 0, move_speed);
return;
}
if ( GetSenderId() = 2 )
{
MoveToFrame(trns_frame1, 1, move_speed);
MoveToFrame(trns_frame2, 1, move_speed);
MoveToFrame(trns_frame3, 1, move_speed);
MoveToFrame(trns_frame4, 1, move_speed);
MoveToFrame(trns_frame5, 1, move_speed);
MoveToFrame(trns_frame6, 1, move_speed);
MoveToFrame(trns_frame7, 1, move_speed);
MoveToFrame(trns_frame8, 1, move_speed);
MoveToFrame(trns_frame9, 1, move_speed);
return;
}
if ( GetSenderId() = 3 )
{
MoveToFrame(trns_frame1, 3, move_speed);
MoveToFrame(trns_frame2, 3, move_speed);
MoveToFrame(trns_frame3, 3, move_speed);
MoveToFrame(trns_frame4, 3, move_speed);
MoveToFrame(trns_frame5, 3, move_speed);
MoveToFrame(trns_frame6, 3, move_speed);
MoveToFrame(trns_frame7, 3, move_speed);
MoveToFrame(trns_frame8, 3, move_speed);
MoveToFrame(trns_frame9, 3, move_speed);
return;
}
# ........................................................................................
end
basicaly, it does nothing when it is ment to move the framesobjcts
here is the code:
# Jedi Knight Cog Script
#
# Filename.COG
#
# Description
#
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
thing trns_frame1
thing trns_frame2
thing trns_frame3
thing trns_frame4
thing trns_frame5
thing trns_frame6
thing trns_frame7
thing trns_frame8
thing trns_frame9
flex eject_speed
flex move_speed
surface move_out_switch linkid=1
surface move_in_switch linkid=2
surface eject_switch linkid=3
sound activate_sound
message activated
end
# ========================================================================================
code
activated:
if ( GetSenderId() = 1 )
{
MoveToFrame(trns_frame1, 0, move_speed);
MoveToFrame(trns_frame2, 0, move_speed);
MoveToFrame(trns_frame3, 0, move_speed);
MoveToFrame(trns_frame4, 0, move_speed);
MoveToFrame(trns_frame5, 0, move_speed);
MoveToFrame(trns_frame6, 0, move_speed);
MoveToFrame(trns_frame7, 0, move_speed);
MoveToFrame(trns_frame8, 0, move_speed);
MoveToFrame(trns_frame9, 0, move_speed);
return;
}
if ( GetSenderId() = 2 )
{
MoveToFrame(trns_frame1, 1, move_speed);
MoveToFrame(trns_frame2, 1, move_speed);
MoveToFrame(trns_frame3, 1, move_speed);
MoveToFrame(trns_frame4, 1, move_speed);
MoveToFrame(trns_frame5, 1, move_speed);
MoveToFrame(trns_frame6, 1, move_speed);
MoveToFrame(trns_frame7, 1, move_speed);
MoveToFrame(trns_frame8, 1, move_speed);
MoveToFrame(trns_frame9, 1, move_speed);
return;
}
if ( GetSenderId() = 3 )
{
MoveToFrame(trns_frame1, 3, move_speed);
MoveToFrame(trns_frame2, 3, move_speed);
MoveToFrame(trns_frame3, 3, move_speed);
MoveToFrame(trns_frame4, 3, move_speed);
MoveToFrame(trns_frame5, 3, move_speed);
MoveToFrame(trns_frame6, 3, move_speed);
MoveToFrame(trns_frame7, 3, move_speed);
MoveToFrame(trns_frame8, 3, move_speed);
MoveToFrame(trns_frame9, 3, move_speed);
return;
}
# ........................................................................................
end