I am trying to make player gain ingame curreny by doing hard things with vehicle. I have jumping rumps in map and there are collision boxs at the end of the ramps. If player succesfuly jump from this ramp player will get ingame currency. I have created collision boxs. When the player himself collide currency is gaining but casting to my vehicle dont work. Sorry for bad language <3
Hey @XMI_Company! Welcome to the Forums!
Have you tried blueprint interfaces? This may be the best way to communicate if you are doing anything dynamically. Check out this non-Epic affiliated example of how to implement them!
I hope the above is the solution you need!
The problem is i have to cast 2 bps. Because currency is variable of my character but collision with box have to be with vehicle. I mean if vehicle overlpas with box it should add currency for player. I can make a currency variable for vehicle but dont know how to make it exact same with players currency. Thanks for reply btw
Hey @XMI_Company,
You would still want to use the currency for your player, rather than making two different variables. You can make your currency part of your player controller or part of a set of universal variables via another blueprint / save state / etc. The player controller may be the easiest way depending on what you are doing.
Thanks a lot <3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.