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 → Is it possible to do this in COG?
Is it possible to do this in COG?
2001-06-24, 8:24 AM #1
Can I use COG to make a HotKey? Like...

(Hit key 'x'):
print("You have hit x!!!!");
return;
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2001-06-24, 12:18 PM #2
Not sure what you're saying here.. you could bind a key to an item cog I suppose...
2001-06-24, 12:26 PM #3
You can make new hotkeys but you can't do it with just a cog. In JK.

[This message has been edited by Boba Rhett (edited June 24, 2001).]
Gravity isn't MY fault--I voted for velcro.
2001-06-24, 12:27 PM #4
I believe in MotS you can with PlayerAction. Don't quote me on that, as I've never cogged in MotS.
Obsidian wrote a tutorial on PlayerAction, which can be found here:
http://www.massassi.net/tutorials/keytrapping/player%20action.html

[This message has been edited by Aglar (edited June 24, 2001).]
2001-06-25, 1:18 AM #5
Thanks alot, Algar,

I just can't figure out how to use the

SetActionCog(cog, flags);

And, how do I set this up? What message do I use (if any)

is it like this?

SetActionCog(cog, 0x1); (Where do I find the cogs)
If(GetParam(0) == 0) // if he presses the jump key
{
Print("No Jump for You!");
ReturnEx(0); // Makes the player NOT jump, even though he pressed the jump key.
return;
}
??
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2001-06-25, 1:54 AM #6
Sorry, like I said, I've never used it.

↑ Up to the top!