Announcement

Collapse
No announcement yet.

Multiplayer : Set Player Var from other actor?

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

    Multiplayer : Set Player Var from other actor?

    Hello,

    Quick question:

    How do I set something like health ( replicated ) from a other actor. Im not allowed to use cast to player with ( get player character ).
    So how do I do that the player who used an item gets the health?


    Cheers
    Unreal Developer since Unreal Engine 3

    #2
    How are you interacting with the Health item?
    Youtube
    Twitch

    Comment


      #3
      With the Use Function of the Item. The user function got the player controller and the index of the item in the array.:
      Click image for larger version

Name:	item.JPG
Views:	1
Size:	19.3 KB
ID:	1101850
      Unreal Developer since Unreal Engine 3

      Comment


        #4
        The User Parameter is a Player Controller Reference correct? If so, can you try to do a Get Controlled Pawn from it?
        Youtube
        Twitch

        Comment


          #5
          Ahhh yeah ... maybe this works thanks ill do my best
          Unreal Developer since Unreal Engine 3

          Comment

          Working...
          X