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:Code:class MyController extends UTPlayerController config(Input); exec function myFunction( ) { `log("Start my function."); } exec function stopMyFunction( ) { `log("Stop my function."); } defaultproperties { }I can call my function properly through the console, but when I right click nothing happens.Code:[MyGame.MyController] 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.



Reply With Quote


Bookmarks