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"

Widgets from client to server

Hi! I have a player who has own inventory and some container with wich he must interact and take from it some items But if I call player inventory widget, it works on server and client when I drag and drop items, but if I call container inventory widget from playercontroler(client function) and player inventory simultaneously, in player's inventory, it works correctly, but if I interact with container's items, they drag and drop on client only, though this function for change inventory position must call on server and client

Thank you in advance

Sorry for my English :)

Product Version: UE 4.19 Preview
Tags:
more ▼

asked Feb 03 '18 at 07:03 PM in Rendering

avatar image

chevalier_ru
1 2 2

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

1 answer: sort voted first

Widget functions are client-only, and HUD too. If you want to spawn objects on server, you have to call a server function for example in PlayerController, otherwise the object is spawned only on the player client.

more ▼

answered Feb 04 '18 at 01:30 PM

avatar image

Scienziatogm
396 44 40 51

avatar image chevalier_ru Feb 05 '18 at 03:02 AM

Thanks!

I called all functions at first on the client than on server, but the thing was that my container didn't have an owner in interaction on server and all functions called on client only

I found a solution here: https://answers.unrealengine.com/questions/242055/cannot-call-server-rpc-from-clients.html

(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