x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How would I go about adding nitrous to a vehicle?

Hello,

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++.

Thanks, Jamie

Product Version: Not Selected
Tags:
more ▼

asked Feb 18 '15 at 10:45 AM in Blueprint Scripting

avatar image

jamierobinson59
13 1 1 4

avatar image Jacky Feb 18 '15 at 10:59 AM

Another alternative to Narg'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.

avatar image Narghile Feb 18 '15 at 11:04 AM

Hi Jacky, never new that.

Good suggestion

avatar image jamierobinson59 Feb 18 '15 at 11:08 AM

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! Zak, :)

avatar image Narghile Feb 18 '15 at 11:11 AM

Always nice to help, and I am sure Jacky would agree.

Just remember, if it works, mark it solved, it not, ask another question and we will see how we can help.

If you do get stuck. Post a picture to help.

Glad to see Jacky and I could help

Narg

avatar image Jacky Feb 18 '15 at 11:17 AM

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.

Happy to help and good luck!

avatar image jamierobinson59 Feb 18 '15 at 11:34 AM

Okay, thanks guys!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

HI

When you hit SHIFT., set a bool to Yes in "Nitro", delay 5 and reset to No

In you event graph, set branch if Yes - add normal velocity and "Nitro" velocity then add to movement.

Narg.

more ▼

answered Feb 18 '15 at 10:51 AM

avatar image

Narghile
1.7k 74 38 110

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question