How to add boxes collision around an object to create a Spatial Grid?

Hi everyone,

I am very inexperient with C++ and UE4, but I am trying to create my game. I want to create a fire propagation system like Far Cry 2 (Far Cry: How the Fire Burns and Spreads | Jean-Francois Levesque). How I am at the beginning of this idea, I am trying to create a system that can create many cubes around my object automatically, and each cube needs to have some variables, like a lifetime, hitpoint, position in the world and the number of cubes that are colliding with it.

How can I do this? My initial idea was to create a UPROPERTY to change the static mesh. My next idea was to add with a function a small box collision in the world. If this box collision with my object, I would like to attach with him and with the order variables that I need, but I have tried to do that outside the constructor, so my UE4 program crash immediately… Sorry for my easy question, and if you can help me, I will appreciate it so much.