x

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"

Get Client's playercontroller index

Hello,

first and foremost sorry for all the questions I post lately, but since almost no one could help me so far, I'm doing baby steps here.

I am this close to my personal breakthrough and I guess I only have one question left.

How can I get the specific playercontroller index of the client which is currently active (Think dedicated server checkbox checked and clients set to 3 e.g.)

I have some logic, which involves possessing, but in order to that to function, I need my "self" index in blueprints when I am this or that client.

I hope I chose clear words :D

thanks!

Cheers

Hermi

Product Version: Not Selected
Tags:
more ▼

asked Oct 30 '14 at 11:00 PM in Blueprint Scripting

avatar image

Hermi1988
31 6 11 13

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

1 answer: sort voted first

Keep in mind that playercontrollers represent players who exist on that machine. for the client if you have only one player (more if splitscreen) then that one player will always be index 0.

On the server, all the connected clients exist, so then there will be more player indexes.

Do if you find self player index on client, it will probably be 0 no matter what. if you find self player index on the server, theb it will be a specific number.

if client has a higher player index then that's another loval controller on the client machine. does not tell you which index it is on the server.

more ▼

answered Jan 21 '18 at 04:53 PM

avatar image

mightyenigma
3.7k 18 23 20

(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