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"

Countdown when player runs out of ammo

I've followed three different tutorials--one to add a flashlight and battery level,, and two others to add a countdown in the game. I want to have the countdown start once the player's battery runs out. I thought I could grab the Player Battery, check to see if it's less than or equal to 0, and then start the countdown, but it's giving me an error and I'm not sure how to fix it. I currently have this set up in the FirstPersonCharacterGameMode, as the tutorial showed. Should I be putting it somewhere else? Or how else could I get this to work?

Thanks for all help! I'm really new to Unreal so this might be a really rookie mistake!

alt text

Product Version: UE 4.13
actual help me.png (175.1 kB)
more ▼

asked Dec 01 '16 at 04:58 PM in Blueprint Scripting

avatar image

6 1

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

1 answer: sort voted first

The problem is that you are not connecting the execution line to the Cast To FirstPersonCharacter node

more ▼

answered Dec 01 '16 at 05:22 PM

avatar image

722 19 6 26

avatar image reikkei Dec 01 '16 at 05:25 PM

I told you it would be a rookie mistake... thank you so much!

(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