utextrakeybindings sub class problems

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Silver_Ibex

Member
Feb 27, 2001
654
0
16
How do I bind a key in a sub class of the utextrakeybindings so when I press it, it executes one command and then when the key is released, it executes another?

So far I can get the one command to execute and starts the action, but it never stops on the key release, below is a more detailed description of what I am trying to do.

First I bind the keys for my mod, the question marks are what needs filled in


class MyModKeys extends utextrakeybindings;

defaultproperties
{
SectionName="My_Mod_Keys"
LabelList(0)="Press to set action to true, release to set action to false"

AliasNames(0)=" ActionStart???????????"


Now in my new UTplayer pawn class I have the functions modify the common variable bAction.

exec function ActionStart()
{
bAction=true;
}
exec function ActionStop()
{
bAction=false;
}