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 → Key-file cog
Key-file cog
2000-10-14, 8:24 AM #1
Ok, as basic as this probably is, you should all knowby now that about the only element of JK/MotS Editing I can't do is cog. So, here it is:

I need a cog plays a keyfile for a thing when you step on it. it should also play a sound as it does this. That's it.

This is going to be used for my stone pillars in teh lava when crossing it. When you jump onto a pillar, it breaks apart under you, forcing you to move quickly from pillar to pillar.

thanks guys.... [http://forums.massassi.net/html/biggrin.gif]

------------------
You should know my title by now, but if you didn't, it's

_,-'The Bazooka Floydist'-,_

"Troops, don't fire till you see their eye textures switch from affine to perspective!"
"If you're takin' your girlfriend out tonight, you'd better park your car well out of sight. For if they catch you in the backseat trying to pick her locks, they're gonna send you to mother in a cardboard box, you'd better run[-run-run-run]!"~Pink Floyd, from "Run Like Hell"
Clarinetists, unite!

-writer of Bloodwing
(a work in progress)
2000-10-16, 1:13 PM #2
Anyone?!
Clarinetists, unite!

-writer of Bloodwing
(a work in progress)
2000-10-16, 2:29 PM #3
Here's a thought: Cleave the sector on top of the pillar so that there is a very shallow sector with the width and depth the same as the top of the column, which should be a thing. Then use the crossed message to trigger the key. For example:

-----------------------

symbols

message crossed

surface pillartop

thing pillar

sound rumble=collpase_sound.wav local

keyframe fall=falling.key local

int played=0 local

end

code

crossed:

If (played == 1) return; //will only play once
PlaySoundLocal(rumble, 1, 0, 132);
PlayKey(column, fall, 1, 0x14);
Sleep(.5);
DestroyThing(column);
StopSound(rumble);
played = 1;

return;

end



------------------
"Dead Reckoning"
http://www.geocities.com/quilty00
Dead Reckoning
2000-10-17, 3:44 AM #4
or you could use touched: on a thing...
2000-10-17, 5:14 PM #5
Only problem with that is that it would trigger even if the player struck the side of the column, unless that's what GR wants...

------------------
"Dead Reckoning"
http://www.geocities.com/quilty00
Dead Reckoning
2000-10-18, 8:28 AM #6
Yeah, I could use it if he touched the side too....but I dunno how to write cogs at all, so I'd need somebody to set out the whole script for me. I'd really appreciate it.

------------------
You should know my title by now, but if you didn't, it's

_,-'The Bazooka Floydist'-,_

"Troops, don't fire till you see their eye textures switch from affine to perspective!"
"If you're takin' your girlfriend out tonight, you'd better park your car well out of sight. For if they catch you in the backseat trying to pick her locks, they're gonna send you to mother in a cardboard box, you'd better run[-run-run-run]!"~Pink Floyd, from "Run Like Hell"
Clarinetists, unite!

-writer of Bloodwing
(a work in progress)

↑ Up to the top!