View Full Version : Simple Keyframe Question
Lord_Grismath
08-15-2004, 06:06 AM
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?
darthslaw
08-15-2004, 03:32 PM
Try this:
animID = PlayKey([thing], [key], [priority], 0x16);
StopKey([thing], animID, 0.01);
------------------
nytfyre m0d (http://www.nightfire.uni.cc/site/page.php) || f33l t3h p0w3r (http://www.geocities.com/qrphome/pwp3/) || t3h l0st c0gz (http://www.tbns.net/GBK/ol/index.htm) || OMF > * (http://www.bkkbazaar.com/omf/)
Lord_Grismath
08-16-2004, 06:01 PM
Can you actually tell me what that does, first? :\
darthslaw
08-16-2004, 06:08 PM
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 (http://www.nightfire.uni.cc/site/page.php) || f33l t3h p0w3r (http://www.geocities.com/qrphome/pwp3/) || t3h l0st c0gz (http://www.tbns.net/GBK/ol/index.htm) || OMF > * (http://www.bkkbazaar.com/omf/)
[This message has been edited by Darth Slaw (edited August 16, 2004).]
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.