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 do i make a dodge/dash

I want to make my character dash disappear then reappear at the end also with some particles how would i go about doing this

Product Version: UE 4.14
more ▼

asked Dec 30 '16 at 08:50 AM in Blueprint Scripting

avatar image

30 12 12 17

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

1 answer: sort voted first

In your character blueprint - add the particle for going into stealth, and turn off Auto Activate.

In the Event Graph, add a custom event to be called when they hide that.

  1. Activates the particle.

  2. Delays for a moment to allow it to begin showing.

  3. Hides the player

  4. Deactivates the stealth particles after an appropriate amount of time.

As example.. Vanish Event

You can call it from whatever you like. To test it just add a Keyboard-Q or whatever, and have that [Vanish]

I have this set so that when they move, it makes them visible again. Unhide

But you need to make sure they are actually moving - if you are using the Example content - they call player movement whether any "movement" is to take place or not.

Adding a branch to be sure they are moving (the input is not 0) will keep them from coming out of hiding instantly on hiding.

Check for 0 on Input

You can call it from any action, Dash, Hide, etc. And you can use other methods to make them visible again. I used movement because in most games that have stealth it ends it.

vanish_event.png (101.3 kB)
onmove_unhide.png (89.1 kB)
more ▼

answered Dec 30 '16 at 11:29 AM

avatar image

766 22 7 36

avatar image Jakupiii Dec 31 '16 at 12:53 AM

Ok so i did it but and works perfectly but only once when i try do it again it gets out of hiding instantly

avatar image Looniper Dec 31 '16 at 11:28 AM

What is your Set Visibility(to return to visible) tied to?

If you connect it to the Movement controls - you need the check to be sure they are actually trying to move. (Axis Value != 0)

If that is not working, you can just make a timer to check for actual motion, regardless of input (it also makes you appear if 'bumped' by an opponent, etc)

Set a Timer and create a corresponding Custom Event.

Have that check to see if you are "hidden' and if so - Get Velocity. alt text get Vector Length from that to see how 'fast' you are moving (by any means) and become visible if there is significant movement.

avatar image Jakupiii Dec 31 '16 at 11:54 PM

yes! that did it thanks, 1 more thing could you tell me how make my character dash mid way of all this i tried with the launch character node but i cant get it working

(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