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"

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. 

I am making a widget to set a countdown timer, but I just don´t know what to put in the object part of my cast to

Could someone please explain to me what I need to put in the oject spot, but I don´t know exactly what.

alt text

I am a brazilian programmer and I need some assistance, I am just getting the hang of it but I can´t find this one. I am making a countdown timer and for that I need to work with my ActorBP, he is the one making my time go down but in my widget it won´t appear so that I can see if it is working, I only want to see the timer go down instead of nothing. If someone has an alternate solution to what I did feel free to tell me or if I did something wrong also tell me, I am new in unreal and am not that good, this is my finishing work for this year of my programming school and a helping hand would be nice. If this was too complicated for you ust comment so I can explain it a little better if I can.

Product Version: UE 4.20
Tags:
findtheobject.png (116.6 kB)
more ▼

asked Dec 12 '18 at 02:42 PM in Blueprint Scripting

avatar image

Maniacaio
1 1

avatar image Tuerer Dec 12 '18 at 02:51 PM

Try using the "Get Player Character" as the object, I think you should be able to get it in the HUD.

If not, you can try doing that the other way around: set a timer in the ActorBP and transfer the value you want to print out to the widget.

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

1 answer: sort voted first

What is ActorBP? Is it a player controller? Is it a pawn?

Widgets have owners, an owner is a player controller. If your ActorBP is a player controller, then in your widget call "Get Owning Player" and pass it as the object for your cast.

If your ActorBP is a pawn, then in your widget call "Get Owning Player Pawn" and pass it as the object for your cast.

more ▼

answered Dec 12 '18 at 05:25 PM

avatar image

MajinSephiroth
1.2k 31 8 33

avatar image Maniacaio Dec 13 '18 at 10:13 PM

I don't know exactly what it is, but it's not a player controller or a pawn, it is basically the rules of my game, for example, in my game there are platforms and triggers that appear and disappear, and my ActorBP is what says what platform to disappear and when they reappear.

avatar image MajinSephiroth Dec 19 '18 at 10:08 PM

When you open up ActorBP, what class does it inherit from in the top right corner of the screen?(Parent Class)

(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