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"

Set different Actor Collision for each Player[Multiplayer]

Hi,

so in my game the player can either walk through a hologram door or collide with it. In single player I can set the collision of the door and it works fine.

I am trying to get the same thing in local multiplayer to work. I have a hologram door and two players in my local multiplayer game. The problem now is how do I set the collision of the hologram door specific to a player, so one player can walk through but the other player can't.

I tried it with custom events and 'Run on owning client' to set the collision of the hologram door, but nothing seems to work so far. I searched on google, but also with no success. Thanks for any help! alt text Dave

Product Version: UE 4.15
Tags:
more ▼

asked Jul 15 '17 at 09:15 PM in Blueprint Scripting

avatar image

NightSoundGames
5 3 8

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Here how I was able to do it for local multiplayer.

  • In your project settings, go to Engine > Collision. You need to make 2(one for each player) new object channels. alt text

  • You need to make 2(again, one for each player) collision presets.alt text

  • These are going to be the same settings as the default pawn collision. alt text

  • Go to your character's collision component. (In my case I used the default character so it is its capsule component) settings. Change the collision preset to your respective characters collision preset we just made. alt text

  • Now in your object's collision settings, change the preset to custom (if its on a default preset), and check or uncheck the ignore or block for the channels we made. alt text

Again, this is for local multiplayer. 'Run on owning client' is for networked multiplayer(not saying that it will work or not, you mentioned it though)

objectchannel.png (15.5 kB)
preset.png (128.0 kB)
editprofile.png (37.8 kB)
cube.png (48.1 kB)
more ▼

answered Jul 15 '17 at 10:42 PM

avatar image

vivalabugz
729 10 8 13

avatar image vivalabugz Jul 17 '17 at 07:25 AM

Were you able to get it to work?

avatar image NightSoundGames Jul 17 '17 at 05:04 PM

Thank you for your detailed tutorial! Got it working now :)

(comments are locked)
10|2000 characters needed characters left
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