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 → Enter-triggered cameras not working
Enter-triggered cameras not working
2004-04-13, 3:28 AM #1
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.

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.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-04-13, 6:01 AM #2
Only thing I could think of is if the sector was too small or something and it never registers the players entry into it. Otherwise I have no idea.

------------------
Major projects working on:
SATNRT
JK Pistol Mod
Aliens TC
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2004-04-13, 6:19 AM #3
Put a printed statement in the conditional...

------------------
I used to believe that we must fight the future, lest change come without our consent. I was wrong. The truth is that we must embrace the future, for only with change can we remain the same.
And when the moment is right, I'm gonna fly a kite.
2004-04-13, 8:46 AM #4
Don't insult my intelligence, GBK. :P

Of course I thought of that, but the weird thing is that when I enter the doorright sector, for some reason I get staircam0 instead of the rigcam.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-04-13, 6:15 PM #5
Looks like it should be working [http://forums.massassi.net/html/confused.gif]

Double check and make sure you have all your variables assigned the right values (don't forget to refresh).

Just trying to run through all possibilities here.

------------------
Bond, Power, CA, The Force, Saber, IC, Epic, Oily Mexican Food, BG, /\ |> /\ /\/\, Sentences.
Now you know where I've been.
May the mass times acceleration be with you.

↑ Up to the top!