Announcement

Collapse
No announcement yet.

[Networking] Clients have valid AController*, but its InputComponent is NULL?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Networking] Clients have valid AController*, but its InputComponent is NULL?

    Hey guys,

    So I have multiple players connected, each with a valid AController* (doing this in C++), but when I call the following, in the controlled Pawn's tick:

    AController* CurrentController = GetController(); // Valid
    UInputComponent* InputComponent = CurrentController->InputComponent; // Returns NULL

    Am I missing some initialization stage?

    Thanks!
Working...
X