Input Action events

How can I use a vanilla input action event? I want to use this so I can do something every time a building is sampled but just adding it to the Game World event graph doesn't seem to work.
No description
10 Replies
Robb
Robb2mo ago
and you've already checked that the thing with that node is capable of receiving input?
SirDigby
SirDigbyOP2mo ago
What do you mean?
Robb
Robb2mo ago
actors/widgets don't magically work with input actions out the gates sec example mod has something for this, trying to find docs
SirDigby
SirDigbyOP2mo ago
Ah, so it just might not work because I'm in a mod Game World
D4rk
D4rk2mo ago
Keys don't work in modules AFAIK because they are UObjects. You need a world actor to enable input on like a subystem
SirDigby
SirDigbyOP2mo ago
Ok, I'll try that Yup, doing it in a subsystem worked. Thanks!
Archengius
Archengius2mo ago
Keep in mind that vanilla does not in fact use this node outside of UI widgets and it will break with splitscreen as well (if we were to add it at some point) prefer registering handler on player controller instead
Archengius
Archengius2mo ago
AFGCharacterPlayer::OnPlayerInputInitialized is similar to it but there is a delegate for player controller as well i think nevermind, no delegate available, i guess you have to listen on the character level or hook AFGPlayerController::SetupInputComponent

Did you find this page helpful?