I want to go in the my character blueprint in the 1st person template to allow the player to sprint but for that I need event beginplay witch is already used. So how exactly can I do to make a second event beginplay or something like that, something that could replace it, I saw a question that was similar to this one the awnser was to use custom events but I’m new and I don’t know how exactly to use them to “copy?” event beginplay.
Hi there!
To make this very clear:
- Event BeginPlay is called only once when the game starts.
- It can not be copied.
- It is possible to call multiple nodes in a row by connecting them in a row with the white execution line starting from the event BeginPlay node.
To create a sprint system you want to change something when the player presses and releases the keyboard key you want to use for sprinting. The information on pressing and releasing keys is provided by input events and not by the BeginPlay event.
If you want to see a very simple implementation for a sprinting system please take a look at Tesla Devs tutorial:
It’s a good answer but I want to only be able to sprint in like the front direction not sideways and the tutorial I watched (not tesla) said I need an event beginplay and I already have one that’s why I have the problem.
Hi man ,
You can “fire” the begin event multiple times… just create a custom event like “MY_EVENT” and connect this new event at the same pin you connected the begin-event… so they will do the same things…
Whenever you need it , just call your “My_event” and it will do the exact things .
Create a Blueprint class instead of using Level Blueprint