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 → How to set camera view on surface?
How to set camera view on surface?
2002-11-24, 9:34 AM #1
Do you remember these cog functions?
setcamerafocus
setcurrentcamera
With these functions you will see the view from the camera (not your player), and I want to set this view on surface. Is it possible? If yes - how to do it?
2002-11-24, 10:24 AM #2
It's not directly possible, but you can fake it with this cog:

Code:
# Jedi Knight Cog Script
#
# surfacecamera.COG
#
# Sets the view to the centre of a surface at startup.
# 
# This Cog is Not supported by LucasArts Entertainment Co

symbols                                                         

surface  camerasurf
message  startup
template ghost
vector   pyrvec
int      temp		local

end                                                                           

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

code

startup:

temp=CreateThingatPos(ghost,GetSurfaceSector(camerasurf),GetSurfaceCenter(camerasurf),pyrvec);
SetCameraFocus(0,temp);
SetCurrentCamera(0);
return;

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

end


You'll obviously want to change this to match your exact needs.
2002-11-24, 10:52 AM #3
This belongs in the cog forum.

------------------
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association

↑ Up to the top!