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 → It won't play the KEY
It won't play the KEY
2002-07-27, 6:23 AM #1
I found the piston 3DO seen in MotS in JK's res2.gob, so I cooked a small animation for it and decided to use it in my level. However, the COG won't play the KEY.

Code:
# Jedi Knight Cog Script
#
# filename.cog
#
# Description
# 
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols

message	startup
thing		piston
keyframe	shuttleanim=pistanimwolfy.key
sound		psound=00conveyoramb01.wav		local

end

# ========================================================================================

code

startup:
    PlayKey(piston, shuttleanim, 1, 0);
    PlaySoundThing(psound, piston, 1.0, -1, -1, 0x81);
return;

# ........................................................................................

end


------------------
"Do you have any idea how long it takes to dig graves for twenty-three oak trees?"
-- Davram Bashere, The Fires Of Heaven
"She shall make you a real boy, and I shall make her a real woman."
-- Joe, A.I.
NMGOH
Wolfy On Google
the idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken
2002-07-27, 10:17 AM #2
Startup:
Sleep(.25);
the rest

There ya go.

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-27, 11:18 AM #3
For any n00b that might read this, the reason you need to wait a bit before doing anything on startup, is because the startup message is called while the level is still loading. IE, not every object/sector/surface yet exists. By waiting, you can ensure the target's existance, and solve most problems.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-07-27, 2:25 PM #4
But if its looping why would it matter?
Team Battle.
2002-07-27, 4:02 PM #5
Because JK is pissy, it seems.
the idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken
2002-07-27, 4:14 PM #6
Good point.
Team Battle.
2002-07-27, 5:49 PM #7
What happens when you start spinning a ball in your hand that doesn't exist! Simple, you can't! That's a more "user-friendly" way of saying what GBK said. [http://forums.massassi.net/html/wink.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!