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. 

Spawning Objects with Array

Hello,

I've been trying to create a minimap which can be set with maxX and MaxZ (setting the numbers up, and then adding those tiles made into an array) The problem is that I want to get a specific number (like 2) and set a specific mesh for that tile.

Picture below is how I spawn the minimap with just plain tiles. I want it so i can switch out each tile with a different one.

Many Thanks Mrfantasticghost

alt text

Product Version: UE 4.8
Tags:
asda.jpg (184.9 kB)
more ▼

asked Aug 23 '15 at 10:37 PM in Blueprint Scripting

avatar image

Mrfantasticghost
8 7 11 15

avatar image Mhousse1247 Aug 23 '15 at 10:48 PM

Create an array of StaticMeshComponents and add the spawned tiles to it , and then you can access to those tiles by index

avatar image Mrfantasticghost Aug 23 '15 at 10:50 PM

Yeah I got the static mesh component set up in an array. Could you possible show how I would setup the blueprint to get the index of the Tile Map and then set the index to corresponding static mesh in the array?

avatar image Mhousse1247 Aug 23 '15 at 10:56 PM

you want to select a tile and get it index?

avatar image Mrfantasticghost Aug 23 '15 at 10:57 PM

Get its Index

avatar image Mhousse1247 Aug 23 '15 at 10:59 PM

use this node

alt text

test61.png (21.0 kB)
avatar image Mrfantasticghost Aug 23 '15 at 11:01 PM

Then how would I reference it to the Index in my TileMap Array?

avatar image Mhousse1247 Aug 23 '15 at 11:08 PM

alt text

test62.png (54.0 kB)
avatar image eXi Aug 23 '15 at 10:49 PM

Just a comment: There is a really good functioning Minimap on the Marketplace:

https://www.unrealengine.com/content/f7569b75555146fd83660f44cc3904d1

Maybe you want to check that out if you can't find any help (:

avatar image Mrfantasticghost Aug 23 '15 at 10:54 PM

I want to make a Super Metriod inspired minimap and I don't have much money ahaha :)

(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