GetViewportSize() fails in multiplayer

  • Hi, guys. I am on a multiplayer third person shooting game, and I find it impossible to access any local function in PlayerController like GetViewportSize() or DeprojectScreenLocationToWorld(), which is really needed for a TPS game.
  • My problem is: when I try to get those functions from a server event ( because I need to spawn and launch projectile ) , the IsLocalController() function in PlayerController always returns false, so I fail to access those local functions ( I think they are local :>).
  • So, is there some method to use that two functions in a server called function? Please someone helps me, ty.