How would I get my exec function to get called when I press right click?
My class file is:
So far I have tried adding this to the end of the UTInput.ini file:
class MyController extends UTPlayerController
exec function myFunction( )
`log("Start my function.");
exec function stopMyFunction( )
`log("Stop my function.");
I can call my function properly through the console, but when I right click nothing happens.
Bindings=(Name="GBA_AltFire",Command="myFunction | OnRelease stopMyFunction")
What am I doing wrong? Excuse the newbie question, I'm just trying to get a basic understanding of the engine.