I am building a camera wire cog that when you activate a console it will flash to a camera and then the camera will run between to frames on a 'wire'. it will go to the first frame and works fine, when i activate the console again it stays at frame 1 instead of already moved back to frame 0 and begin moving to frame 1. complicated...not really i hope either its this or my frames are messed up which i am doubting:
# Jedi Knight Cog Script
#
# 00_CameraWire.cog
#
# A cog that allows you to put a camera on a 'moving wire'
#
# [Silent]
#
# (C)shi7 LucasArts does not support yadda yadda yamama
symbols
message activated
message timer
thing console
thing camera
float start_wait=0.00
float sleeptime=2.0
float speed=4.0
end
#Code _______
#Start []D []-[] []
code
activated:
//if (phuck != 1) return;
if (IsThingMoving(camera)) return;
if (GetCurFrame(camera) != 0) return;
Sleep(start_wait);
MoveToFrame(camera, 1, speed);
Sleep(start_wait);
if (GetCurFrame(camera) == 0) return;
SetTimer(speed);
return;
timer:
// Sleep(speed);
MoveToFrame(camera, 0, speed);
//phuck==0
return;
end
# Jedi Knight Cog Script
#
# 00_CameraWire.cog
#
# A cog that allows you to put a camera on a 'moving wire'
#
# [Silent]
#
# (C)shi7 LucasArts does not support yadda yadda yamama
symbols
message activated
message timer
thing console
thing camera
float start_wait=0.00
float sleeptime=2.0
float speed=4.0
end
#Code _______
#Start []D []-[]
code
activated:
//if (phuck != 1) return;
if (IsThingMoving(camera)) return;
if (GetCurFrame(camera) != 0) return;
Sleep(start_wait);
MoveToFrame(camera, 1, speed);
Sleep(start_wait);
if (GetCurFrame(camera) == 0) return;
SetTimer(speed);
return;
timer:
// Sleep(speed);
MoveToFrame(camera, 0, speed);
//phuck==0
return;
end