Spawn actor based on table
fabioebner
Member Posts: 7
I wanna to create one inventory, so when my player found something he can put in their inventory.
But when he leave my game and back, i wanna to loop over one table and spawn all the items on inventory
the spawn rule i need to select one actor can i call the spawn rule and pass one string with the name of my actor
tks
Comments
As I'm sure you realized, you can't use an expression to specify which actor is spawned. You'd need a separate rule with a spawn behavior for each possible actor.
When I make inventory systems, I use a single actor. Its image and other attributes get set based on table data. That way, it's just a single spawn actor behavior.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User