Call GameMode Custom Events from Command Line?
After packaging my game, I need to call specific events within the GameMode blueprint based on a command line given in the shortcut that is placed on the desktop. In specific, I have two different shortcuts that I will need to call different events in so specific logic occurs based on which shortcut is clicked.
Here is the shortcut logic I want to have happen:
"%userprofile%\Desktop\MyGame\WindowsNoEditor\MyGame.exe" -bIsLanMatch=1 -IsServer "%userprofile%\Desktop\MyGame\WindowsNoEditor\MyGame.exe" -vr -IsClient
Here is the blueprint preview (from the GameMode):
I have tried using the -ce IsServer in the shortcut command line, but that only calls from a level blueprint and not a server blueprint.
Any help on this issue (preferably without C++) would be appreciated!
asked Nov 21 '18 at 11:58 PM in Blueprint Scripting
Sadly C++ is probably your best bet if you want to properly implement them and you can detect command line parameters with this:
But i really also don't understand why you doing this IsClient and IsServer stuff, UE4 already has command line options for that:
And there nodes to detect if you are on server or client:
Also note that GameMode exists only on server side
Follow this question
Once you sign in you will be able to subscribe for any updates here