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 → Simple Keyframe Question
Simple Keyframe Question
2004-08-15, 3:06 AM #1
Is there a way, through cog, for me to just skip to the final frame of an existing keyframe, or will I just have to make a new keyframe with only that frame and not loop it?
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-08-15, 12:32 PM #2
Try this:

animID = PlayKey([thing], [key], [priority], 0x16);
StopKey([thing], animID, 0.01);

------------------
nytfyre m0d || f33l t3h p0w3r || t3h l0st c0gz || OMF > *
May the mass times acceleration be with you.
2004-08-16, 3:01 PM #3
Can you actually tell me what that does, first? :\
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-08-16, 3:08 PM #4
Since the PlayKey() plays the key with the 0x10 flag in place (4th param of PlayKey is 0x16, or 0x2 + 0x4 + 0x10), stopping that animation via StopKey() will play it to the last frame in the amount of time that is given for it to stop (that amount of time is the second param of StopKey() )
Also, 0x2 will keep the anim from looping and 0x4 will hold it at the last frame when it is stopped.

Hope that made sense.

------------------
nytfyre m0d || f33l t3h p0w3r || t3h l0st c0gz || OMF > *

[This message has been edited by Darth Slaw (edited August 16, 2004).]
May the mass times acceleration be with you.

↑ Up to the top!