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"

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. 

Client can't destroy the actor why ?

alt text

I want to do a simple press and destroy actor thing.When i press q in = Server it destroys the actor.Also client sees that destroyed.But in Client when i press q it doesn't destroy the actor. Why ? Problem is not about the branch when i delete branch it doesn't work again. Thank you very much :)

Product Version: UE 4.19
Tags:
question.jpg (245.1 kB)
more ▼

asked Jun 12 '18 at 01:08 PM in Blueprint Scripting

avatar image

sevanberkay
32 4 6 11

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

2 answers: sort voted first

First of all i would't recoment using get player controller in multiplayer projects, use get controller instead. For destroying the pawn in client you should use RPCs. Basicaly create another custom event called "Destroy character", make it run on server and reliable, as input put your character reference. alt text

untitled.png (158.7 kB)
more ▼

answered Jun 12 '18 at 01:34 PM

avatar image

simonuks221
83 1 3 5

avatar image sevanberkay Jun 12 '18 at 01:50 PM

Thank you very much for your reply. but still not working i cant destroy the actor in client but it sees when i destroy the actor from server I tried yours and this alt text

alt text

firstpicture.jpg (271.3 kB)
secondpicture.jpg (254.4 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Okey i solved i put all of these to the topdown controller so not in the actor class.It has to be in controller class

more ▼

answered Jun 12 '18 at 02:34 PM

avatar image

sevanberkay
32 4 6 11

(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