Download

how to spawn buildings when payed for

okay don’t even know how to connect a event to spawn in a prefab building. I want it so when the player pays/supply’s the resources needed for a building to be built it places the building in the spot predefined in the correct direction. I currently have the event working correctly with a inventory crafting of a building kit. the building kit the is used to trigger the event but I cant find a way to connect the event to the prefab in unreal. any ideas? or would coding it in be better?

You can try casting to where where your event is (the building kit?) and call the event then, when the correct conditions are achieved.

It’s been quite a time that I’ve used Unreal extensively on this, but you should try the Spawn Actor and select your prefab on Class line.