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 → camera cog help
camera cog help
2001-05-06, 9:00 AM #1
What cog would I use to make a moving camera?

------------------
Why must we live only to die?
2001-05-07, 1:37 PM #2
Hi, this should work for what you want. It works by activating a console. It moves a camera between 3 frames.
Code:
# Jedi Knight Cog Script
#
# 00_CAMERA.COG
#
# This script will briefly show the effect of using the
# forcefield console to the player...
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved

flags=0x240

symbols

thing       console                          desc=console
thing       camera                           desc=camera_ghost
flex        delay=6                        desc=delay

int         old_camera                       local
int         player                           local
int         active=0                         local

message     activated
message     timer

end

# ========================================================================================

code

activated:
   if(active) Return;
   active = 1;

   player = GetSourceRef();

   if(player == GetLocalPlayerThing())
   {
      SetActorFlags(player, 0xa00000);
      old_camera = GetCurrentCamera();
      SetCurrentCamera(0);
      SetCameraFocus(0, camera);
MoveToFrame(camera, 1, 2);
MoveToFrame(camera, 2, 2);
MoveToFrame(camera, 0, 2);
   }

   SetTimer(delay);

   Return;

timer:
   ClearActorFlags(player, 0xa00000);
   SetCameraFocus(0, player);
   SetCurrentCamera(old_camera);
   active = 0;

   Return;

end

If it doesnt work, send me an email, and ill try to work it out for you.

------------------
Forget years of training and commitment!
I found a lightsaber in a garage and that makes me a Jedi!
- DCM JK Special Edition
Dont ask me how it works, it just does.

↑ Up to the top!