I was looking at the tutorial for this but did I miss a link or is this located in one of the sample contents somewhere?
Hi Emile,
Is this the example that you are referring to? https://rocket.unrealengine.com/docs/ue4/INT/Gameplay/Blueprints/Examples/ClassBPExamples/PowerUp/index.html
This only exists as a page in our documentation. If you want examples for pick-ups in the editor, the Content Examples sample project has some objects that can be picked up. At the end of the map Blueprints_Advanced, there are three “pick-up” blueprints.
Is there anything in particular that you are trying to accomplish that the example did not cover? If that is the case, I would be happy to further assist you with this issue.
Thank you,
Alexander
Thanks Alexander.
Yes I saw those examples but I did not consider the Power-Up to be a pickup, though now that you say it that way it makes sort of sense. Not sure as I thought you were powered I the mesh volume and not after.
What I am looking for to create is a volume that I can have work as a capture point and then eventually connect to an event. So I would need to be in the volume for X time and then event would occur. if you leave the volume then the timer counts back down and it could continue again if you re-enter the volume from where it left off.
I have an idea on the math just setting it up with the connections has presented me with a lot of trial and error without getting any where near the results.
I understand, yes the power up example would not cover that. I would be happy to assist you with your Blueprint creation. Can you give me some specific areas of the Blueprint that are giving you trouble?
In the Blueprint_Examples the Commentary_Box blueprint is very close to what I am trying to accomplish.
I understand the basics of what is going on following the wiring but I am still trying to understand the way the lines of information are being printed to the background. I see there is a construct so you can change the number of lines and it will resize aswell as you can put the text that you would like on each line.
That I get but no the actual output.
Where I also am stuck and I’ve tried approaching it in programming a function term was to create a timer that would count down from a number to 0 WHILE the pawn is inside the overlap. easy enough to get the overlap but I cannot setup a proper timer as I am not sure how to have it countdown simply from 10 to 0 in seconds. Once that is done it would be able to count back up to 10 WHILE not overlap but if overlap reoccurs continue from current time position.
I will keep looking thru the documents to try to find the right set of vars and functions but if you can point me in the right direction or offer advice of course I’m all ears.
You may want to skip using While for the countdown/up function. If you create “OnComponentBeginOverlap” and “OnComponentEndOverlap” events, you can have the Overlap events turn on and off a Bool that controls whether to add or subtract On Tick to a Float. The On Tick execution would always be adding or subtracting (in seconds), but you can clamp the Float to range from 0 to 10.
The effect would be that the Float is 0, then you step into the volume triggering the Bool to change. An OnTick executes a True Branch that then adds to the Float. When exiting the volume, it turn the bool to False and the OnTick triggers the False output, subtracting from the Float.
Let me know if this helps you with your Blueprint.
Cheers!
Alexander
Here’s my current hookup which sort of works but I cant figure out how to use the tick function and also did you mean use the EVENT RECEIVETICK? By sort of working I mean it will show a MINUSed value and then A plus value but its not counting in any form
The OnComponentOverlap events will only trigger one time when activated, so you will want to just use them to set a bool. Then, using the Event RecieveTick (you are right, this is scheduled for renaming) add or subtract from the float using a branch.
Essentially the Overlaps are a switch and the Tick is driving the adding/subtracting per second.
Here is an example:
Does this help with your counter?
well I see how the event tick works in regards. So far the biggest hold up has been access to the documentation. And knowing what has to be created by the user as opposed to what’s available. Since some renaming has happened and what is shown is not what it is now.
Hey Emile,
Did that change with the Tick help with with setting up your Blueprint? Is there anything else that I can assist you with in regards to your Blueprint?
Thanks,
Alexander