As you may have imagined by the nature of this post I get ‘No particles.’ and ‘No sound.’ messages in my output log. Oddly I can get the code to work if I copy and paste the exact same thing from my jump function to BeginPlay(). What’s going on here?
Edit: The Jump() function is called as intended, because the GLog messages are visible every time I press the appropriate key. I’m using UE4.8 if that helps.
The problem was the way I spawned my actor. My idea of class inheritance mixed with blueprints was messed up which caused the problem.
By making a UBlueprint* variable exposed to the editor and dragging my player’s blueprint in there then using its GeneratedClass member variable to spawn it via my custom GameMode, I got it to work.
Not sure why BeginPlay() worked now that I think about it, but it works now so that’s good.