Hello again. This is what I get for trying to include everything in one COG. For some reason, when I enter hallleft, it doesn't set the focus to that camera, and it chronically never set the focus to rigcam when I entered its sector. Why? Everything is defined correctly in JED.
------------------
Rites of Xanthus
The TC that exacted a terrible toll on my time and eyesight.
Code:
# 02_garcamstart.cog
# [Grismath]
#======================================================================================#
symbols
message user0
message entered
message activated
int start=1 local
int wraa=0 local
int music local
sound spy
thing startcam
thing pillarcam
thing doorcam
thing ceilcam
thing staircam0
thing staircam1
thing rigcam
sector startsec
sector shadowright
sector shadowleft
sector corner
sector doorleftex
sector hallleft
sector hallmid
sector stairs0
sector stairs1
sector hallright
sector doorright
thing doortop
thing peter
thing bernard
thing bigrig
int destroyed=0 local
end
#======================================================================================#
code
#--------------------------------------------------------
entered:
if(start==1) {
if(GetSenderRef()==startsec) SetCameraFocus(0, startcam);
if(GetSenderRef()==shadowleft || GetSenderRef()==shadowright) {
SetCameraFocus(0, pillarcam);
AIClearMode(peter, 0x1004);
AIClearMode(bernard, 0x1004);
if(wraa==0) {
wraa=1;
music=playsoundlocal(spy, 1, 0, 0x1);
}
}
if(GetSenderRef()==corner || GetSenderRef()==doorleftex) SetCameraFocus(0, doorcam);
if(GetSenderRef()==hallleft) SetCameraFocus(0, ceilcam);
if(GetSenderRef()==hallmid) SetCameraFocus(0, ceilcam);
if(GetSenderRef()==hallright) SetCameraFocus(0, ceilcam);
if(GetSenderRef()==stairs0) SetCameraFocus(0, staircam0);
if(GetSenderRef()==stairs1) SetCameraFocus(0, staircam1);
if(GetSenderRef()==doorright) SetCameraFocus(0, rigcam);
}
return;------------------
Rites of Xanthus
The TC that exacted a terrible toll on my time and eyesight.

![http://forums.massassi.net/html/confused.gif [http://forums.massassi.net/html/confused.gif]](http://forums.massassi.net/html/confused.gif)