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...
2001-11-25, 12:56 AM #1
GBK, this is for you. I need a cog which, on activation of a console, will act like a normal camera but will change ghost after a set number of seconds. It needs to have 10 ghost things for it to go to. Can you do it?

If anyone else can, go on then.

------------------
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
2001-11-25, 2:28 AM #2
Even if you just tell me what to add where I'd be happy...

------------------
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
2001-11-25, 4:03 AM #3
Code:
symbols
int sleeptime
int i
thing console
thing camera0
thing camera1
thing camera2
thing camera3
thing camera4
thing camera5
thing camera6
thing camera7
thing camera8
thing camera9
message activated
end
code
activated:
if(GetSenderRef() == console)
{
 for(i=0;i<9;i=i+1)
 {
  Sleep(sleeptime);
  SetCameraFocus(0,camera0);
 }
}
return;
end
2001-11-25, 7:32 AM #4
It don't work...

------------------
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
2001-11-25, 9:08 AM #5
A few minor modifications...

Code:
symbols
int sleeptime
int i=0  Local
thing console
thing camera0
thing camera1
thing camera2
thing camera3
thing camera4
thing camera5
thing camera6
thing camera7
thing camera8
thing camera9
message activated
end
code
activated:
if(GetSenderRef() == console) {
for(i=0;i<=9;i=i+1) {
Sleep(sleeptime);
SetCameraFocus(0, camera0); } }
return;
end



------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-26, 11:12 AM #6
It works, but (a) you have to go into internal mode to see the effects, and (b) it doesn't come back out. Please fix it.

------------------
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
2001-11-26, 12:14 PM #7
Woops.


Code:
symbols
int sleeptime
int i=0  Local
thing console
thing camera0
thing camera1
thing camera2
thing camera3
thing camera4
thing camera5
thing camera6
thing camera7
thing camera8
thing camera9
Thing Player   Local
message activated
end
code
activated:
Player = Getlocalplayerthing();
if(GetSenderRef() == console) {
for(i=0;i<=9;i=i+1) {
Sleep(sleeptime);
SetCameraFocus(0, camera0); } 
Sleep(Sleeptime);
Setcamerafocus(0, Player); }
Stop;
end



That should do the trick...


------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-27, 9:03 AM #8
Can you MAKE the cog for me? Like making a .cog file. THEN I may have more luck. And please test it...

------------------
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
"Nac Mac Feegle weyhey!"
Battle cry of the Nac Mac Feegle.
2001-11-27, 9:26 AM #9
Here is the cog.

It works, I tested it. [http://forums.massassi.net/html/biggrin.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!