How do i make it so i can place vectors/objects on the ground where i point on the screen, and they have a ghost box around them, to know where u place them.
How do i make it so i can place vectors/objects on the ground where i point on the screen, and they have a ghost box around them, to know where u place them. I want to make them able to damage "Enemies" if they get too close and make the Enemies attack them. Think a bit like a Spike Wall.
asked Jul 31 '15 at 12:30 PM in Blueprint Scripting
This can and does get very complicated. I'm doing something similar in my project (RTs similar to Tropico.) the short answer is to use the node "get location under cursor" to place the mesh where you want. Obviously you need a UI to select a building or mesh and spawn it at your cursor position first. As far as the "ghost" is concerned you only need to create a special mesh, or what I did was just use the glass material in my mesh then when "construction is complete" I change the material to the desired one. It's a very long and relatively intermediate process and will be hard to show you exact process here. While this may not help you now, I do plan on starting a tutorial series on my channel in the next couple weeks that will go over this exact thing plus some.
Sorry for generic answer but best I can do with such a limited space. Hope this helps though.
answered Jul 31 '15 at 12:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here