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.
I can try implementing that using C++, is there a recommended file I can put that code in to? Also, the reason the UE4 networking nodes won’t work for this method is because of the logic that goes into spawning each of the players (also due to servertravel not keeping selected pawns on level change). I am trying to get the server to spawn as a different type of pawn than the clients. This game runs off of LAN and has a maximum of 4 players, 5 with the server included.
This is the current GameMode that I am trying to use, which works for my purpose but I want the clients to not be completely reliant on a server that spawns with a server pawn.
I don’t want to use the listen command-line argument since this product will be sold commercially and the IP reservations will change on a per-customer basis (unless there is a way to find the IP automatically using command line arguments).