Creating An Interaction From A HUD
Creating an Interaction from a HUD class is probably one of the easiest things you could do.
Just edit your PostBeginPlay() Function.
simulated function PostBeginPlay() { Super.PostBeginPlay(); PlayerOwner.Player.InteractionMaster.AddInteraction("MyMod.MyInteraction", PlayerOwner.Player); }
... done. Simple eh?
Interactions can do a whole load of stuff though, so choose a section relating to what you want to do:
the_viking: I think this code is for UT. If you want to use it with UT2003, I think you have to do it so:
simulated function PostBeginPlay() { local PlayerController PC; PC = PlayerController(Owner); PC.Player.InteractionMaster.AddInteraction("MyMod.MyInteraction", PC.Player)); Super.PostBeginPlay(); }
Wormbo: There are no Interactions in UT, the above code should work perfectly.