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 → To Be Specific...
To Be Specific...
2001-03-15, 8:42 AM #1
I need SP mots security camera cog help.
The camera will have to be something to be avoided, because it will sound an alarm when it spots you. Stormtroopers will need to react to the alarm and come running, and maybe red lights will flash or something...
But thats it. I suppose it wouldn't be bad to have it toggleable, too, and destroyable.
How DO I GET THIS if it exists, or can it be created?
Coruscant has lovely sunsets....
2001-03-15, 11:29 AM #2
well does it have to be a camera? because i could do it if it was activated when the player enterd a sector. if not have fun making all your little details
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-03-16, 1:10 AM #3
Yeah, it's got to be a camera, one that's using a visible camera 3do. You think you could do it? Or tell me how? Thank you for your trouble.
Coruscant has lovely sunsets....
2001-03-16, 6:57 AM #4
Well, you can set the camera to be an actor, and then write a cog which uses the "IfHasLOS(player)" line to see if the camera sees the player. If it does then you can:

"CreateThing(stormtroop,spot1" to make the stormtroopers appear.

The red lights could be done with the:

"pulse:
if currentcolor==1 then
{
setsectortint(1,0,0,GetThingSector(camera)
currentcolor = 2
}
else
{
setsectortint(0,0,0,GetThingSector(camera)
currentcolor = 1
}

If you wanted it toggle-able (I imagine by switch) you can add to the cog an activated trigger and then set a variable to a certain number. Then when the player is seen:

"If (HasLOS(player)) && (on=1) then"
or at the beginning
if on=0 then return;

In the template you set the actor's set the health=10 or something, so it can be killed. On the Killed message you can even:
"CreateThing(shards,camera)" before it dies so it shatters.

You can make the camera cog unable to move, and then use a cog with frames to make the camera look from side to side.

This is all theoretical, and I think I misnamed some of the commands, they exists, i just forgot what they were called and I was too lazy to find out. Everything I said should work. Good luck!
2001-03-16, 10:25 AM #5
yeah what u are asking is rather dificult to cog but it looks like dragon got everything right from what i can see.
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-03-17, 9:36 AM #6
Thanks so much for the suggestion...
I only wish I could understand it! [http://forums.massassi.net/html/smile.gif]
I have no real experience with cogging. Mostly I just sculpt levels and 3dos and stuff. Would anyone out there make it for me, or explain how these things work?

Thanks Again.
Coruscant has lovely sunsets....
2001-03-17, 12:47 PM #7
E-mail me at dragonphinn@apok.org and I'll write the cog and make the templates as soon as I get the chance.

↑ Up to the top!