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 to add nitrous to a vehicle by pressing a button

Hi, I have an imported car and I am looking to add a nitrous feature to it which is activated by the pressing of a button (right shift). I would like it to last for around 5 seconds, and then regenerates slowly as the vehicle moves. Could you please include screenshots of the blueprint as I have no idea where to start, as I am relatively new at using this. Thanks in advance.

Product Version: UE 4.18
Tags:
more ▼

asked Mar 07 '18 at 03:07 PM in Blueprint Scripting

avatar image

ItssEzraa
1

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

2 answers: sort voted first

you need to learn more on your own. if you dont know even where to start then you need to up your skills a bit before taking this on.

that said i would start by looking into tutorials on sprint mechanics since its basically the same thing. the basics are to have a variable for the amount of boost you have. then on button press have a timer that triggers at a regular interval (how quick you want to drain the boost). then all you need is to set the velocity.

i didnt tell you every detail here so theres still some blanks that need to be filled in but theres some hints there on where to start. try to come up with something on your own and once you have something if it still doesnt work then come back and ill help you fix it.

more ▼

answered Mar 07 '18 at 03:55 PM

avatar image

ThompsonN13
10.3k 34 10 27

avatar image Jin_VE Mar 07 '18 at 09:04 PM

It's amazing how many people want to start out making things even we would find challenging. Nobody wants to start learning the basics. No one would get into rock climbing and head straight for K2.

Ezra, to start out you should not build your own project. You should watch beginner tutorials and build the projects they do. When you are more familiar with UE4 you will be able to apply those skills to your projects.

We aren't here to teach you UE4 or build your project for you. We're here to help you as you take the journey we are on ourselves.

And since I'm here, I may as well chime in on the question itself. I'd use a timeline that adds to the base speed smoothly. With something like nitro boost I think you'd want to have it ramp up to the top speed relatively slowly, hold it based on the tank size, and then peter off pretty quickly. That screams timeline to me.

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

The thing about wheeled vehicles is that they are physics based so it's difficult to increase top speed or acceleration using specific, simple values.

The fact that they are physics based does provide some use though: look into Thrusters.

However, like ThompsonN13 said, you need to look up some tutorials and play around with the editor, look into relevant nodes by dragging off of any actor component and looking through the list of available nodes with Context Sensitive checked.

more ▼

answered Mar 07 '18 at 07:44 PM

avatar image

Evilraptor
8 1 2 6

(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