So, I am currently developing a destruction/car game in Unreal Engine 4. I have had the idea of adding nitrous to the cars so that when you press a certain button (Left Shift, for example), the car will boost in speed for about 5 seconds until the nitrous runs out.
I’ve tried some ways but none of them seem to work.
Anyone got any ideas on how to get this working?
EDIT:
I should also mention that this needs to be done entirely in Blueprint, no C++.
Another alternative to’s suggestion is the use a thruster component(location set on center of mass of the vehicle in construction script) and activate it when you hit nitrous key.
So if I put that in the car’s blueprint, then add an ActionInput called Nitrous (for the set button) and then make it activate when that button is pressed and add a delay of 5 seconds, then deactivate it?
Sounds good.
Thanks for all your suggestions, loving the answerhub already!
,
Yep, thats it. Keep in mind that you may need a very high value for the thruster(dont be surprised if you need to set the value to over 1 mil.) to actually move the vehicle’s mass.