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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Is this possible? If it is how would I do this?

I'm wanting my FPS Character to Crouch when you Tap 'Caps Lock', but when your in Crouch and you Press 'Caps Lock' again you don't Stand, but when you release 'Caps Lock' you will then go back to a Stand. But when your in Crouch and press and hold 'Caps Lock' for a good 0.3 seconds, you will then go into a Prone. Then when your in prone, you can press 'Caps Lock' again & you will then go back to a crouch & then from Crouch you can either press 'Caps Lock' and release it before 0.3 seconds is up and go back to a Stand or press and hold 'Caps Lock' again for 0.3 seconds and go back to Prone.

I've been using Sequence Nodes, Gate Nodes, MultiGate Nodes, etc and I just can't get it to work right.

Does this make since or is this even possible?

Please give me some tips, ideas, anything! Thanks :)

Product Version: UE 4.9
more ▼

asked Oct 25 '15 at 03:09 AM in Using UE4

avatar image

19 20 18 26

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

2 answers: sort voted first

It's definitely possible, although what you're asking for is quite a complex problem. I've attached an image of a slightly simplified version of what you're after just to get you started ('PlayerStance' is a enumeration, if you've not seen those before).

In this situation, if the player releases (I'm using releases rather than pressed because it's less ambiguous, but you can obviously change that) the caps lock they'll change between standing and crouching and then back to standing. If they hold the button, they'll transition down to prone (from standing this is a two-step process, transitioning through crouching). This isn't completely what you were after (and it doesn't handle standing up again), but you shouldn't need to extend it with anything more than a few booleans ('were we already in crouch when the caps button was pressed', stuff like that) and maybe another float.

In my opinion, multiple gates usually gets you into trouble :)


playerstate.png (246.1 kB)
more ▼

answered Oct 26 '15 at 09:40 AM

avatar image

369 10 79 33

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

Just store a float variable with delta time of tick. If is greater then 3 prone. If not, just toggle between Grouch and Stand.

more ▼

answered Oct 25 '15 at 03:52 AM

avatar image

252 32 32 178

avatar image sayer6913 Oct 25 '15 at 04:40 AM

Could you describe to me what you mean, on a blueprint? Thanks!

(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