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 → I bet you can't make this cog...
I bet you can't make this cog...
2001-08-26, 9:18 PM #1
I am planning on having this bridge in my next level and I want it so it can only have on player on it at one time. If there is more than one the bridge collapses.

------------------
Yeah, but John, if the Pirates of the Caribbean breaks down, the pirates don't eat the tourists. - Ian Malcolm
twitter | flickr | last.fm | facebook |
2001-08-27, 1:08 AM #2
I don't need that bet. [http://forums.massassi.net/html/smile.gif]

But, in the level you should have a surface on 1 side of the bridge and another at the end of the bridge which are passable.

On those surfaces have a cog with crossed message like this.

As for "playerType" I forgot, but it says in the thing type flag section of the jkspec in the flag section.

Set the 2 crossing surface of the bridge on this cog.

Code:
symbols


int playerInside local
surface bridgeSurfaceA
surface bridgeSurfaceB


message crossed
message trigger


end


code


crossed:


   if(GetSourceType() != playerType) return;


   if(playerInside != -1 && playerInside != GetSourceRef())
   {
       //blow the bridge
       SendTrigger(-1, 987654, -1, 0, 0, 0);
   }
   else
   {
      if(playerInside == -1) SendTrigger(-1, 987654, GetSourceRef(), 0, 0, 0);

      else SendTrigger(-1, 987654, -1, 0, 0, 0);
   }


   return;


trigger:


   if(GetSourceRef() == 987654) playerInside = GetParam(0);


   return;


end


If the bridge is simple enough to use as a sector you may try "entered" and "exited" message on the sector, which should be easier than this.

------------------
http://millennium.massassi.net/ - Millennium

[This message has been edited by Hideki (edited August 27, 2001).]
2001-08-28, 5:07 AM #3
I know what you're doing! I know what you're doing! I bet this is for a Jurrassic Park III Mod, isn't it? I derived that from your sig, and the fact that i saw that movie last night [http://forums.massassi.net/html/biggrin.gif] I believe it's from the scene where they have to cross over the birdcage-bridge thingy. Am i right?
Aisha Clan-Clan: "The Ctarl-Ctarl are an invincible race of beings. We're all as strong as ten humans!"
Gene Starwind: "Is that so?"
*Pulls out his Caster Gun and shoots her. She lies on the ground in a daze*
Gene Starwind: "Wow, you really are invincible!"

- Excerpt from 'Outlaw Star,' Episode 5
2001-08-29, 5:28 AM #4
ChewbaccaRC YOU ARE A WINNA HA HA HA. I just thought it would be good to have that cog when we start working on Isla Sorna, Currently we are working on Isla Nublar.

------------------
Yeah, but John, if the Pirates of the Caribbean breaks down, the pirates don't eat the tourists. - Ian Malcolm
twitter | flickr | last.fm | facebook |
2001-08-30, 4:21 AM #5
make it generate cracking noise when there`s a player on it [http://forums.massassi.net/html/biggrin.gif]

------------------
We are not who we are...
The music industry is a cruel and shallow money trench where thieves and pimps run free, and good men die like dogs. There's also a negative side.
2001-08-30, 5:47 PM #6
you could use one of the default wav's for the creaking metal. i cant wait until your mod is finished! im excited for it.
The Imperial Squdron

WARNING: CLICK HERE AT YOUR OWN RISK!

↑ Up to the top!