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"

RTS actors in building queue don't spawn

Hi, I have been following an online tutorial for RTS games and in it they teach you how to make a queue with a construction proxy so that your buildings experience some delays before being built. Those buildings are spawned but their mesh does not appear in the game

As far as I could see my code matches the tutorial code so I am utterly confused as to what is happening. I am posting the blueprints related to spawning a certain building. Sorry for the large amount of blueprints, I hope it helps shedding some light into what is going on.

First the buildings:

Building Master <- Residential master <- Apartment small

The building I am trying to spawn is apartment small, apartment has a mesh and the building master has the following logic to retrieve that mesh from its childs: alt text

Next the GUI

When a user clicks on the button to build the apartment the building class is sent to a ghost building that will follow the player cursor until he decides the location in which to build his building:

This part of the code works fine, I can see that ghost following the cursor.

Placing a building: When we have executed the previous action we are in build mode active and a user can then left click to place the building. This is what happens: alt text

This is what is in queue construction: alt text

And this is what happens when the event is triggered (for now no delay is used, the tutorial has not gotten around that part yet): alt text

Somewhere during that sequence of building the proxy and then making the building from the struct that we stored in the queue the mesh disappears. What is weird is that when I debug the building is spawned (without a mesh) and the struct seems to contain all the information needed including the mesh. I am at a loss with what is going on.

Can someone shed a light?

Thank you in advance!

Product Version: UE 4.16
more ▼

asked Jul 17 '17 at 04:34 PM in Blueprint Scripting

avatar image

70 9 10 18

(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