Spawn an actor from a specific string array
Hi there, so I have managed to make a system which takes in string values depending on what the player obtains. Is there any way to convert the string from the item i picked up, to a class which can be spawned in the world.
I have a main parent class which has loads of children, and i'm trying to make it so the child gets spawned if it is the first value in the string array, but i need it to be a class so i can plug that specific child in and make it spawn in the world.
asked May 01 '19 at 12:11 AM in Blueprint Scripting
Here's an alternative that might be more suited to something that has grown in size and helps minimise complexity a wee bit:
My Object Map is String | Actor Soft Class Reference:
The only (?) downside is that it does not play nicely with variables exposed on spawn - but you can always fire a custom event after spawning the object.
Yes, like this
answered May 01 '19 at 03:42 AM
Nebula Games Inc
Follow this question
Once you sign in you will be able to subscribe for any updates here