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 → Help please
Help please
2000-12-03, 3:16 AM #1
did any one know how I can make the the doors don't close automaticlly I need that they open with a switch then they colse with the same switch like for the Force Fields switches


------------------
May The Force Be With You

[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>

Home Page: The Art of a Jedi
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.
2000-12-03, 7:52 AM #2
Simple! [http://forums.massassi.net/html/biggrin.gif] this code should work just copy and paste

#Jedi Knight Cog Script
#Made by whomever (C) 2000

code
thing door

surface switch linkid=1

int used=0 local

flex speed=

message activated
end
#-------------------------------------------
activated:
if(GetSenderId() == 1)
{
if( used = 0)
{
MoveToFrame(door, 0, speed);
used = 1;
}
else if( used = 1)
{
MoveToFrame(door, 1, speed);
used = 0;
}
}
Return;
end

I hope this works. Someone might wanna check in case though. [http://forums.massassi.net/html/biggrin.gif]

------------------
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."
JK cogs
2000-12-03, 9:09 AM #3
Code:
code
thing door

surface switch linkid=1

int used=0 local

flex speed=

message activated
end
#-------------------------------------------
activated:
if(GetSenderId() == 1)
 {
 if(used == 0)
  {
  MoveToFrame(door, 0, speed);
  used = 1;
  }
 else if(used ==1) MoveToFrame(door, 1, speed);
  {
  used = 0;
  }
}
Return;
end


Note: Just added equal signs to the if statements.

-Jipe
2000-12-03, 10:06 AM #4
Sorry But the cog don't work, or it's me who don't know to use it?
I copied the cog in my level than I have made a door with 2 switches I added also the 00_doorswitchcog but the door still close automaticlly, I need that this stupid door stay open until I aktive again one of the 2 switches.

can u please fix this I very need this cog [http://forums.massassi.net/html/smile.gif]

------------------
May The Force Be With You

[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>

Home Page: The Art of a Jedi
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.
2000-12-03, 12:11 PM #5
1) the cog will work for one switch
2) 00_doorswitch.cog or whatever it's called is not needed with this. take it out.
3) I'm positive this will work if you enter in the surface for the switch, the thing # for the door, the speed for it to move, and specify frames. I really do not want to make a test level and prove that it does work. Refer to the basic door tutorials for more information on frames, etc.
4) Make sure you copy/paste the entire thing into notepad, then click save, enter in your name with a .cog ending, and make sure it isn't saved as door.cog.txt, just door.cog

-Jipe
2000-12-03, 2:31 PM #6
Thank you it's working [http://forums.massassi.net/html/biggrin.gif]

------------------
May The Force Be With You

[url="mailto:jedi_nizar@yahoo.com"]mailto:jedi_nizar@yahoo.com[/url]jedi_nizar@yahoo.com</A>

Home Page: The Art of a Jedi
Wie vielen Leben setztet ihr ein Ende.
Und wie vielen Leben habt ihr bewahrt.
Glänzt noch einmal im Licht, meine Klingen,
und leuchtet für meine letzte Fahrt.

↑ Up to the top!