Time for action – Unbreaking the game
The delayed start is easy enough to take care of, so let's start with that. We simply need to add a line to AwesomeGame's default properties to tell it not to wait for other players.
Add the following line to AwesomeGame's default properties:
bDelayedStart=false
That's it! If we compiled now and tested, the game would start up like we're used to, with the player immediately spawning.
Now for the next step. We're missing the "Pick up the weapon" message. This is due to the
Log Kismet
action being called directly from thePlayer Spawned
event. There are a lot of things happening all at once when the player is spawned, so we need to give the game a few ticks before everything is ready for the player to receive messages on their HUD. For simplicity's sake we'll just wait a second, so openAwesomeTestMap
'sKismet
and add a one second delay to the output of thePlayer Spawned
event.Now that's working, but the weapon upgrade doesn't appear! We can walk over it...