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"

FPS Template - How do I set a delay in between shots?

In the most recent FPS template, how would I set a one-second delay in between every gunshot? Somebody asked this already, but it was for the old template & blueprints. Thanks!

Product Version: UE 4.14
Tags:
more ▼

asked Feb 15 '18 at 08:39 PM in Blueprint Scripting

avatar image

Zakuree
1 1

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

1 answer: sort voted first

below you will see a very basic way to accomplish this. basically have a branch node whos bool is a variable (canFire). if the bool is true the player can fire, if its false then they cant. so when they do fire you set the value of canfire to false then have a delay of the time you want til they can fire agian and set canfire to back to true

alt text

capture.png (149.9 kB)
more ▼

answered Feb 16 '18 at 01:32 AM

avatar image

ThompsonN13
10.1k 33 10 23

(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