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
Camera Cog
2002-08-25, 7:04 AM #1
I had gotten the cog for a camera from the tutorials section. The code for the cog is as follows:

# Jedi Knight Cog Script
#
# C3_CAMERAFF.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=1.5 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);
}

SetTimer(delay);

Return;

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

Return;

end

Now then, the above code has it set so the thing you press to activate the camera has to be a thing. I want it so the thing you press to activate the camera is a surface. It's probably very easy to make the conversion, but I don't know how to.
Who made you God to say "I'll take your life from you"?
2002-08-25, 7:21 AM #2
Code:
surface      console       desc=switch


------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.

[This message has been edited by Descent_pilot (edited August 25, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!