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:
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:
This is what is in queue construction:
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):
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!
asked Jul 17 '17 at 04:34 PM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here