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"

Multiplayer Pawns That Should Ignore Each Other Still Collide

I'm building a multiplayer racing game in which players can respawn at checkpoints spaced along the track. In order to ensure collisions don't break the game, I am trying to make it work so that recently-respawned cars cannot collide with other vehicles until later. The logic for this is already in place.

The difficulty is making the collisions actually work as intended. I am using two collision channels. The first is 'Vehicle' which exists by default and the second is 'RespawningVehicle' which I added. Right now, collisions still happen even though, as far as I can tell, they should not. They are different though, in that the normal vehicle may move as normal and the respawning vehicle pops on top of it. It seems as though the first car is ignoring the respawning car, but the respawning car is not ignoring the other.

Given this, I made each car print out its collision channels at the moment of the "incident" on both the server and the client. I was given the following data (edited for readability).

 Server: Vehicle1
 Current type - RespawningVehicle
 Vehicle Response - Ignore | RespawningVehicle Response - Ignore
 
 Server: Vehicle2
 Current type - Vehicle
 Vehicle Response - Block | RespawningVehicle Response - Ignore
 
 Client 1: Vehicle1
 Current type - RespawningVehicle
 Vehicle Response - Ignore | RespawningVehicle Response - Ignore
 
 Client 1: Vehicle2
 Current type - Vehicle
 Vehicle Response - Block | RespawningVehicle Response - Ignore

This is exactly as I told it to be in the blueprint script, as you can see here: Replicated function to ensure collisions are set for all connected players.

I should also add that the mesh mentioned here is the only component with any collisions. I can tell it to ignore other vehicles entirely by default and it will. It is only when trying to expand the logic as described that weird issues begin to surface.

Logically, a vehicle should ignore any respawning vehicle and a respawning vehicle should ignore any other vehicle at all, so that only combination of vehicles that can collide are two that are not respawning. Therefore these two vehicles should ignore each other, but they do not. As a brief aside, I have also tried using the Ignore Actor When Moving node to achieve the same result, but that only works for actors that aren't simulating physics, which this actor is.

I would greatly appreciate some input on what could be causing this issue. Many thanks.

Product Version: UE 4.19
Tags:
capture.png (123.4 kB)
more ▼

asked Feb 28 '19 at 01:56 AM in Blueprint Scripting

avatar image

OneViGOR
33 1 4

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

0 answers: sort voted first
Be the first one to answer this question
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