Thanks for the replies!

If I understand correctly the engine determines skills array size based on whether "events" field is empty or not.

So, if I have an entity and I clear the "events" handler in a function, does the engine resize the ENTITY*?

Or is the entity size determination made at the end of the action() assigned to it? (ie. once sized the skills array does not change)