Hey guys. So when the player dies in my game so far, the level does not restart it just continues where it left off.
In udk I had it in kismet where after the player died the level would reset. I am wondering on how to do this in ue4. I am sure it has to be done in blueprints, but I have an idea on how to do it, am still 100 percent lost. Any ideas on how to do this would be great!
As this is the first Google result I found for level restarting when I was searching, I feel it’s imperative to mention here what I just accidentally found out: you can now simply use an “Execute Console Command” node with the command “RestartLevel.”
Don’t excactly can recall right now, but there is an console command to just load the level, if your game ends just excecute it.
so use the node “Excecute console command” and use one of these commands
I think it was OpenLevel (Levelname) you need to run this on a server if you are doing multiplayer
and RestartLevel or something like that this one will only work on singleplayer
There also is a node to load a level, but I haven’t tried it and I am not sure if it is from a plug in or not.
Virtual functions can have a definition. Even pure virtual functions can have a definition, but they don’t have to. If you somehow call a pure virtual function with no definition, then the runtime exception will happen.
Typically, this happens if you attempt to call the superclass function in some way that’s not caught by the compiler/linker (a direct reference will cause a linker error, but a constructor or destructor reference may cause it to happen.)