Store location, orientation, type etc. of all actors in an array?
For the game I'm designing, I'm implementing a "level editor" - the simplest way I can think of doing this, is by letting the user place different actors (for walls, floors etc) in a template, and then saving all the details for each actor into an array for storage. How do I go about saving all this data into an array? Bonus points if you can tell me how to load all the actors in said array into a level :)
asked Mar 19 '15 at 04:06 AM in Blueprint Scripting
You need to use custom structures (New > Blueprints > Custom User Structure). You can have multiple variables, even arrays in them.
To load them in a level, use a "For Each Loop" with the custom structure array followed by "Spawn Actor by Class" (or what it is called) using transformation variables stored in the custom structure.
answered Mar 19 '15 at 03:52 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here