Class that holds array of transformations
I wanted to write a "capture point" class which should hold an array of transformations for possible player spawn locations. The spawn points should be visualized in the editor so that I can move and rotate them as I want.
I tried using pointer arrays for arrow components and target points but when I make a new array entry in the editor, the slots are always empty.
What can I do to "fill" these array slots automatically so that I can instantly move my spawn points around?
Thanks in advance!
asked Aug 22 '18 at 07:35 PM in C++ Programming
Hi @braindrain85, you already have your target points, so in the editor you should be able to drag them from your content browser into your level and assign them from there. Let's say you've got five target points, put them in the level and then you can use the eyedropper icon next to your array element to assign them. Click on the eyedropper , then click on the target you want to assign to that slot.
Props to one of my designers for showing me that trick.
If you are looking for a method that doesn't make a hard reference to actors in the level I would need a little more information on your system.
answered Aug 22 '18 at 10:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here