Custom event behave weird

Hello together,

this is based on Rolling Game.

https://dl.dropboxusercontent.com/u/8764045/event_print.jpg

H Key works properly and sets up physics, Custom Event fires correctly, triggered from Game Mode BP and prints the string.

But when I plug the custom event to set up the physics instead of H-Keystroke, nothing happens. What do I miss?

https://dl.dropboxusercontent.com/u/8764045/event_broken.jpg

Regards,

Could you add how you call the custom event? Because right now I can’t see anything obvious.

Greetings ,

the event is called from the Game Mode BP.

(E:\Temp\event_call.jpg)

The trigger is an OverlapEvent and when the condition is met, it fires up and prints the string. But it don’t do what the H-Key does. When connected to the Set Enable Gravity, nothing happes, with the H_key connected, the ball (previously lifted) falls to the floor.

Thank You

https://dl.dropboxusercontent.com/u/8764045/event_call.jpg

Could you just hook it up to the print? Does that still fire? Because my suspicion is that somewhere the call if handled incorrectly…

Yes, the print fires like a charm. So the call passes the custom event…

You are calling a Keystroke within a custom event?

https://dl.dropboxusercontent.com/u/8764045/event_print_call.jpg

No, the Keystroke was an alternative to proof the physics settings are working and that something happens.

OK, can you plug the print string in after the H, i doubt it will work.

Ok let’s try something. Hook up the print to what you think it should do.

Then try a different key (“L” would be a good example) which you are definitely not using somewhere else and hook it up to the same thing. Then take “H” and do the same.

Now look ingame if you get the print from your gamemode call of your custom event. If yes and it doesn’t do what you expect it to do try to press “L”. If it is still not doing what you think it should try “H”. Maybe you have some more functionality hooked up to that key and it only works because of that.

I tried this:

https://dl.dropboxusercontent.com/u/8764045/event_print_call2.jpg

The call goes through till the end of the line, the EnergyBool is set to false, this should free the ball movement again, but the ball remains frozen. When I plug J an call it ingame, gravity is back and the ball is free…

Can you hook up both into that line and try them in the same game (like first let the custom event go through and then press J).

custom event fires → Print false displayed, ball frozen → hit J-Key → Print false displayed, ball free and moving, gravity back.

When I unplug the J-Key anf hit the J-Key ingame, nothing happens, so it must be called frion there…

I’ve got this. Made the Game Mode BP again from scratch and now behaves as expected. Thank you for the kind response.

That is incredibly weird. Happy it’s fixed though. For closure could you answer your own question stating that you just recreated it and accept it as answer? (Just so it’s marked properly :wink:

Cheers!

It was my mistake. There was a Transform Node keeping the ball in place and released with the H-Key. So when I disconnected the H-Key and pluged the J-Key, a previuosly hit H-Key, released the ball and the J-Key could set the physics back. The H-Key was designed to turn some effects off and forgot the transform node. The custom event was designed to also turn the effects off without the need of a Key-Stroke, so that’s why it didn’t work. In order to work properly, the hit of the H-Key before the custom event fires was mandatory. Sometimes is like finding the needle in a haystack… sorry bothering you with this.