Hi.
I want to add custom Interaction class to handle player input in UDK and to draw some information on Canvas.
The InteractionMaster class from UT2004 seems to dissapear. How to add custom interaction now? I've something really straightforward via mutator, but it didn't work (as I expected ).
Is it a problem I don't have Local PlayerController? There is also LocalPlayer class with GameViewportClient class that has some methods that handles Interactions (and even some custom interactions). However I couldn't find where to set those Custom interactions in GameViewportClient and I am also not sure if this is the place where to do it.
So far I was also not able to access LocalPlayer class within mutator (it is possible I am doing some silly mistake).
Bets,
sk
I want to add custom Interaction class to handle player input in UDK and to draw some information on Canvas.
The InteractionMaster class from UT2004 seems to dissapear. How to add custom interaction now? I've something really straightforward via mutator, but it didn't work (as I expected ).
Code:
function NotifyLogin(Controller NewPlayer)
{
local PlayerController PC;
if (NewPlayer.IsA('PlayerController')) {
`log("Trying to add interaction");
PC = PlayerController(NewPlayer);
PC.Interactions[PC.Interactions.Length] = new(PC) class'GBInteraction';
}
super.NotifyLogin(NewPlayer);
}
Is it a problem I don't have Local PlayerController? There is also LocalPlayer class with GameViewportClient class that has some methods that handles Interactions (and even some custom interactions). However I couldn't find where to set those Custom interactions in GameViewportClient and I am also not sure if this is the place where to do it.
So far I was also not able to access LocalPlayer class within mutator (it is possible I am doing some silly mistake).
Bets,
sk