Cropout RTS Project Resource system

Hi,

I’m trying to build a game from the CropOut template. Currently I’m having issues understanding how I can make my own events cost a specific resource type. I have found a Datatable with the calculation for each “building blueprint”.

So for example, we have a collision box that casts to a villager (AI) that triggers an event that spawns the building.
I would like to add a condition to this, so a cost of 100 wood (resources) activated " is removed" when villager collides with the box.

I can’t quite seem to understand where resource cost is referenced or connected and how I can activate such an event.

Cheers
Rob