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;
}
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;
}