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 with flex's and sector stuff (Still new to coging.)
Help with flex's and sector stuff (Still new to coging.)
2000-11-26, 3:28 PM #1
Alright I am writing a new cog, and I need to delay something but I am not sure how to use the flex. Basicaly I need to know how to write a flex before teleport line....

Also I need to know how to see if my set sector is the sector inwhich set off the entered command, to start my code?

------------------
2000-11-27, 4:50 PM #2
Well i can give an example [http://forums.massassi.net/html/biggrin.gif]

flex delay=any # local
#------------------------------------------

SetTimer(delay);
or
Sleep(delay);

that is one use for flex's
Flex's are just numbers that can make making a cog easier and less troublesome.

Hope that helps! [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-11-28, 10:26 AM #3
yeah.. just be careful.. Sleep() is dangerous in cogs that can be re-activated [http://forums.massassi.net/html/smile.gif]

-Jipe
2000-11-28, 1:29 PM #4
Very true Jipe [http://forums.massassi.net/html/biggrin.gif] i learned that in one of my trap cogs awhile back. i pushed the button about 20 times. nothing happened then BOOM! the whole room was full of 20-30 conc and rail dets. So only use Sleep() when you know it won't do any thing bad.

------------------
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-11-28, 2:56 PM #5
ROFLMAO - that's great [http://forums.massassi.net/html/smile.gif]

Yeah.. like in cogs that can be activated only once, or where you can inactivate the bin so nothing will happen.

-Jipe

↑ Up to the top!