Jump to content
  • Advertisement

pele90

Member
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About pele90

  • Rank
    Newbie

Personal Information

  • Role
    Programmer
  • Interests
    Art
    Design
    Programming

Social

  • Twitter
    gogach90
  • Github
    pele90
  • Twitch
    pele90
  • Steam
    pele90

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi guys, what are options regarding replicating actors to only one one client in Unreal Engine 4. For example, let's say we have a dedicated server and two clients. One client has objective to kill some actor. That actor is spawned on server and should be only visible and interactable to the client with the objective. The first way that i know of, is to set bOnlyReleventToOwner flag to true and set actor's owner to PlayerController. Another way is to override IsNetRelevantFor method in replicated Actor and use some flag to tell for which client we want to replicate actor. Any other options?? I hope you can understand my question. Thanks in advanced.
  2. Tnx for the answer, nice idea. But, is it possible to do it without having a reference of the ball in my player actor. How is intended in UE4 to receive the input and do some functionality in other actors or components. In Unity, one can check if any button is pressed by using Input object (something like Input.GetKeyDown("space")) and if so do the functionality on any script on any gameobject. How can something like that be implemented in UE4? With delegates and events?
  3. Hi all, i'm just starting to use and learn UE4 for game development. I have a lot of question of course but at the moment i'm stuck with some essential one. Just to mention that i come from Unity background so if i think in Unity way, please correct me . Any way, my problem is with getting input from keyboard and moving another actor (not the possessed pawn which is my main player). I have a simple cube as main player that is possessed and can get input from keyboard and act upon it. I have simple sphere as the ball in the game that can bounce around and collide with the player and the walls. I implemented when the ball hits the player, the ball will stop simulating physics and the her world position will be the same as the cube position, i.e. the cube will "carry" the ball around. Now i want to stop "carrying" the ball when i press the spacebar on my keyboard. My cube (player) class is ACollidingPawn class (.h and .cpp) and my ball class is ABall (.h and .cpp). In ACollidingPawn class i can react to player inputs and do whatever i want on the cube actor (in ACollidingPawn class). But i want to do something with the ball actor when i press the spacebar on my keyboard, i.e. need a way to do some logic in ABall class... In essence, i want to "do something on the ball object" after the keyboard was pressed without possessing the ball object. ( as i understood, you can only process input on possessed actor) I hope you understand my problem Thanks in advance!
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!