Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How do i identify specific players on a multiplayer game

If i have a multiplayer game and players use the same pawn type how do i get or identify different players for example if i was an admin how do i damage a specific player or teleport to a specific player. if that makes any sense?

How would i go about this problem? Any reply is much appreciated.

Product Version: Not Selected
more ▼

asked Jan 03 '15 at 11:30 PM in C++ Programming

avatar image

267 68 61 80

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Solution: Player State -> Player ID

Epic accepted my pull request to expose the main net ID that is in PlayerState to Blueprints!

So you can use this simple int32 to distinguish one player from another!

UE4 Forum Link


Get Player Controller -> Get Player State -> See pic at above link


more ▼

answered Jan 04 '15 at 02:56 AM

avatar image

10.6k 446 346 1088

avatar image AndrewM47 Jan 04 '15 at 10:56 AM

Thanks that was just what i was looking for but how would i assign these values?

avatar image MykonCodes Mar 22 '15 at 06:41 PM

But can't the player eventually hack this integer? If he somehow knows his enemy has playerID 555, he could send the server that he is client 555 or couldn't he?

avatar image Kiruse Mar 31 '16 at 07:24 PM

I'd imagine the ID is associated with the connection (and thus IP). The fact that we're "now" (I recon this post is a bit older) exposed to the ID in Blueprint doesn't change that it's been around previously.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question