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 → Stormtrooper through a door in single player cog...
Stormtrooper through a door in single player cog...
2001-01-16, 6:08 PM #1
Hey, since Jipe is sleeping and I need this cog as soon as humanly possible(addicted to editing), I was hoping I could get a cog for my stormtrooper ai to walk through a door. I know this is easy, so If anyone could post a cog they already have, or slap something together quicky-style, that would be the most helpful. Just need the door to open when you get close to it, not with the USE command.

LAter...

------------------
I always drink coffee while I watch radar!
2001-01-18, 11:04 AM #2
try this:
Code:
symbols
float dist
thing door
thing trooper
message startup
message pulse
message timer
end
code
startup:
MoveToFrame( door, 0 );
SetPulse( 1.0 );
return;
pulse:
if( VectorDist( trooper, door ) < dist )
{
MoveToFrame( door, 1 );
SetTimer( 5.0 );
}
return;
timer:
MoveToFrame( door, 0 );
return;
end


I believe this might be what you are looking for, You might want to check the syntax, since i am not as up on my cogging as I used to be [http://216.105.160.32/html/frown.gif]

------------------
cogs dont kill people. people kill people...

[url="mailto:no_oneatall@hotmail.com"]mailto:no_oneatall@hotmail.com[/url]no_oneatall@hotmail.com</A>
ICQ 81116825
===========================================
Evil Cog master of the Western TC!
cogs dont kill people. people kill people...

mailto:no_oneatall@hotmail.comno_oneatall@hotmail.com</A>
ICQ 81116825
==============================================
((Evil Cog Master))
2001-01-18, 3:51 PM #3
Well, I tried it and couldnt figure out how to implement it... Whats the flex do? Do I use this cog by itself? Or with the aiframepatrol.cog? The stormtrooper didnt open the door, just stood at it. I looked at your script, but I know nothing about Cog language. I tried setting the flex to the sector for the ai to walk into, didnt work. I also set it to 2 and then 1, but neither of them worked. Ive got a gob of the level here if anyone wants to check it out in it's beginning stage, you'll get the picture. You will receive deserved credit for your helping a Newbie editor.

------------------
I always drink coffee while I watch radar!
2001-01-27, 12:42 PM #4
CAn somebody re-check this cog? It looks right, but Im having a hard time getting it to work. I must have this working quickly. I have too many ideas involving this cog.

↑ Up to the top!