| Home Page | Recent Changes | Preferences

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()
      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:

HUD Interactions

Keypress Interactions

Message Interactions

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

Wormbo: There are no Interactions in UT, the above code should work perfectly.

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands


Mapping Topics

Mapping Lessons

UnrealEd Interface


Scripting Topics

Scripting Lessons

Making Mods

Class Tree


Modeling Topics


Log In