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 → Playkey not working
Playkey not working
2001-03-15, 5:11 PM #1
Hey.
I cant seem to get queen amidala to move with cog.
heres my script

symbols
message sighted

thing amidala

keyframe amidalaKey=THout.key
end

code
sighted:

PlayKey(amidala, amidalaKey, 1, 0x4);
Sleep(13.0)
return;

end

will this work?
2001-03-15, 5:23 PM #2
Well, I'm not too good at cog, but is sighted even a valid message? You may have to throw in something that tells her to play that key when an enemy has her in their LOS.

------------------
Those who stare in the eyes of death and laugh will be the first to go.
Those who stare in the eyes of death and laugh will be the first to go.
2001-03-16, 1:58 AM #3
No, "sighted" is a message. From the JK specs:

Quote:
<font face="Verdana, Arial" size="2">Sent by a thing when it enters the player's fov</font>


I think, though, that you might be using it the wrong way. I'm not very knowledgable about cogs, but I hth.

jh
2001-03-16, 3:29 AM #4
I never used "sighted" message, but probably it gets sent when the player sees the thing with the cog attached.

As for the sighted message, place this before the PlayKey verb.

amidala = GetSenderRef();

If it doesn't work, try

amidala = GetSourceRef();

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

↑ Up to the top!