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"

Pass Command Line Arguments For Specific PIE Client

I'm currently trying to figure out how to pass some command line arguments to only some of the clients launched by the engine using the 'Play In Editor'.

Here's a link to the Unreal Engine's source code: https://github.com/EpicGames/UnrealEngine/blob/811c1ce579564fa92ecc22d9b70cbe9c8a8e4b9a/Engine/Source/Editor/UnrealEd/Private/PlayLevel.cpp#L2599

For example, I would like to be able to pass a custom command line argument to the first 4 clients that spawn, but not to the rest. (e.g. first 4 have --has_pet, but the rest of the clients don't)

How would I go about doing that? (Assume that I can change the Unreal Engine's code)

Product Version: UE 4.20
Tags:
more ▼

asked Mar 06 '19 at 11:35 PM in C++ Programming

avatar image

BoyanAsenov243
1

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

1 answer: sort voted first

In PIE there is no command line argument, as the clients are only simulated and all launched from your editor.

But you are able to modify the game the way you want in the GameInstance by overriding UGameInstance::InitializeForPlayInEditor

more ▼

answered Mar 07 '19 at 03:08 PM

avatar image

developpeur2000
77 1 3 5

(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