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"

AI Perception Component - Multiplayer issues

Hello,

I am having an issue with the UAIPerceptionComponent class, I added one to my APlayerController, works great in single player but in multiplayer the client with ?listen works fine but the clients that connect do not get notifications except for players, the perception senses other players only.

So I also looked at the server side Controllers for other client and the server side controllers do get notifications for everything in the scene like it's supposed to.

Is this a bug or is this the intended behavior? If it's intended how should I go about syncing this? I store an array of the sensed actors to highlight the closest one to the character in Tick(), it seems inefficient to have this go through the network.

I haven't tried in standalone mode yet, I tested this in the editor.

Thanks, Max

Product Version: UE 4.10
Tags:
more ▼

asked Feb 28 '16 at 11:14 PM in C++ Programming

avatar image

yamashi
3 1 3 6

avatar image yamashi Mar 23 '16 at 11:36 PM
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I have not understand your issue clearly. But I am trying to implement AiPerception on Network clients, to make clients-only notification about their current enemies. And it works in editor, but doesn't works in shiping version.

As I can see here https://docs.unrealengine.com/latest/INT/API/Runtime/AIModule/Perception/UPawnSensingComponent/index.html

SensingComponent encapsulates sensory (ie sight and hearing) settings and functionality for an Actor, allowing the actor to see/hear Pawns in the world. It does nothing on network clients.

So i think if you need some perception on player you have to do it by yourself.

more ▼

answered Jun 12 '16 at 07:47 AM

avatar image

lab-one
111 4 5 10

(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