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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Trigger Box Affects all Players

I am implementing a system where when a player enters a trigger box he/she enters a cover state. The problem is whenever one player enters the trigger box, it causes all the players in the match to enter a cover state.

alt text

I am guessing it has something to do with the "Get Player Character" node having the player index set to 0 but I reall have no idea.

Product Version: Not Selected
screenshot (87).png (128.6 kB)
more ▼

asked Feb 07 '15 at 08:24 AM in Blueprint Scripting

avatar image

492 66 64 211

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

1 answer: sort voted first

Get Player Character will get the Pawn of the player a given index, the player index is used is situation where multiple players are on the same computer/console (they match the indicators on your gamepad for example).

I guess what you want to do is to only enter cover the actor that is overlapping your volume, you can achieve this by using the 'Other Actor' pin from the begin/end overlap events and cast it to your character class. The overlap event will be called on each client locally so only have to act if you are the owner of that actor.

If you are doing a network game you would set the cover state for the actor locally if you are the owner (your own pawn) and then call a server method to do the same. The server would then replicate the state back to all clients (they will then simulate your move on their own), this way you would see the cover change intermediately in the owning client giving you a much smoother behavior, the server could deny the cover move though in which case you have to inform the owning client too.

more ▼

answered Feb 07 '15 at 03:17 PM

avatar image

6.4k 127 98 606

(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