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 → Mmmmmmmmmm.............cog...........................
Mmmmmmmmmm.............cog...........................
2001-12-23, 12:33 PM #1
Hey i need a cog that goes like this. IF a player is in a SPECIFIABLE sector for longer than a SPECIFIABLE ammount of time, then they are teleported into a ghost position.
2001-12-23, 1:01 PM #2
All you have to do is ask... [http://forums.massassi.net/html/tongue.gif]


 


Code:
#12/2001 GBK
Symbols
Message Startup
Message Entered
Message Exited
Message Timer
Sector Target
Thing Ghost
Flex Amount
Template Par_effect
Thing Player    Local
End
Code
Startup:
Player = JKgetlocalplayer();
Stop;
Entered: If(Getthingsector(Player) == Target) {
Settimerex(Amount, 101, 0, 0); } Stop;
Exited: If(Getthingsector(Player) != Target) {
Killtimerex(101); } Stop;
Timer: If(Getthingsector(Player) == Target) {
Teleportthing(Player, Ghost); 
Creatething(Par_effect, Player); } Stop;
End



Havent tested it, but it should work. The 'Par_effect' is for any particle effect you might want to use. To make it seem more realistic...

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-12-23, 1:44 PM #3
Thank you GBK, your gonna get EXTRA credit in all my levels, i couldnt do it with out you!

↑ Up to the top!