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. 

Stupid easy question that I can't answer

Hi all,

Like the title says, this is probably really easy for people to answer but I can't find the solution anywhere.

My game is set up so once all of the trash is cleared from a tropical lagoon the game should complete (it's a tutorial demo)

I know it's something to do with integers and each one adding 1 to the total, in this case 15. Then once the total's reached the game will end.

I just don't know how to blueprint that, could anyone help or link me a tutorial they've used to do it?

Any help would be greatly appreciated :)

Product Version: UE 4.9
Tags:
more ▼

asked Jun 20 '16 at 05:04 PM in Using UE4

avatar image

PartyFish88
3 2 4

avatar image hippowombat Jun 20 '16 at 05:16 PM

If it's needing to meet a condition (i.e. a the right integer value being met) you'll just need to set it up to where your integer count adds 1 or whatever amount when an action is performed, then have a branch node with a condition pulled from an equal(integer) node with the desired integer value in one receiving pin and your integer variable in the other pin. Pull off of the "true" pin on the branch node and have it call your trash-clearing event, leave the false pin unconnected so it doesn't do anything until the condition is met :)

Let me know if you have any questions!

avatar image PartyFish88 Jun 20 '16 at 05:32 PM

Thanks for the reply! :)

So far I have these two blueprints, on the 'bottle' trash and FirstPersonCharacter

I'm guessing the last Blueprint should be in the Level Blueprint?

If so do I need to;

CastToFirstPersonCharacter > Check if Trash is equal to 15 > Branch > False: Leave Empty > True: End level?

Still getting the hang of Blueprinting :)

Thanks for the help so far!

[1]: /storage/temp/95268-fp+bp.png

[2]: /storage/temp/95269-bottle+bp.png

fp bp.png (56.3 kB)
bottle bp.png (70.8 kB)
avatar image hippowombat Jun 20 '16 at 05:45 PM

Correct, the only thing that you'll need to change is in the bottle bp, I can't remember what it's called specifically (away from my dev PC at the moment) but basically there should be two versions of the Call Cleanup node, you'll want the one that has what looks like a little envelope on it.

avatar image PartyFish88 Jun 20 '16 at 05:58 PM

I don't see the Cleanup event node with an envelope. If I search for it I can only find that one ^^ :(

Also, is this right for the Level Blueprint? I have it so it picks up now, and registers that each one adds 1.

alt text

lvl blueprint.png (61.8 kB)
avatar image ScottSpadea Jun 20 '16 at 07:32 PM

the little envelope symbol shows up on message calls to interface functions. so CleanUp would need to be part of a Blueprint Interface, which the actor can implement in its class settings.

https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/Types/Interface/index.html

avatar image PartyFish88 Jun 20 '16 at 08:29 PM

To be honest, I feel like an idiot here.

I've specialised in 3D art for my degree but I have to make a game demo for one of my modules, something I know next to nothing about. My demo is;

  • pick up 5 bottles

  • pick up 5 tires

  • pick up 5 barrels

  • game over

I know it should be easy to blueprint but none of it is making sense to me. I learn best from following examples or video tutorials. I have a lot of respect for you guys being the brains behind the scenes, making the game work. I just wish my head would work like yours does so I could figure this out :/

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

0 answers: sort voted first
Be the first one to answer this question
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