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 → this should be really simple
this should be really simple
2002-03-17, 4:50 AM #1
all i want is a cog to play a key, so i can hotkey the cog, and kyle will play the key or whatever. plz [http://forums.massassi.net/html/smile.gif]
Producer->Prey->Predator
2002-03-18, 5:35 AM #2
Maybe some additional explaining?
http://forums.massassi.net/html/Forum2/HTML/009384.html
Producer->Prey->Predator
2002-03-18, 10:34 AM #3
Code:
# hotkey.cog
#
# Play a key with the local player.
#
# [SM]
#======================================================================#
symbols

keyframe	key=yourKey.key	local

thing		player			local

int		animID			local

message	activated

end
#======================================================================#
code
#----------------------------------------------------------------
activated:
	player=GetLocalPlayerThing();
	animID=PlayKey(player, key, 1, 0x30);

Return;
#----------------------------------------------------------------
end


Try that. [http://forums.massassi.net/html/wink.gif] Depending on what your keyframe does, you will need to use different Keyframe Flags(last param of PlayKey()).

------------------
Author of the Jedi Knight DataMaster.
Visit Saber's Domain.

[This message has been edited by SaberMaster (edited March 18, 2002).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-03-19, 3:36 AM #4
nice [http://forums.massassi.net/html/smile.gif]
Thanks!
Producer->Prey->Predator

↑ Up to the top!