How to get Self "Actor Class" and not " Class"?

If I use “get class” on self - it returns " Class" variable type, but to spawn actor from class “Actor Class” variable type is needed. What is the difference between this classes and how to get “Self Actor Class”?

For now I have a “self actor class” variable, that I input manually, but I am shure that there should be some smarter way.

Same goes with “Actor class is not compatible with Pawn class” when I try to spawn saved AI class. How to get correct class type, so this class can be stored and spawned later?

They are 2 Completley different.

They have to be stored in different Variables, You could use a Struct / Struct Array to store them.

42790-capture.jpg

42811-capture.jpg

42812-capture.jpg

I store them in struct array, but to wright them to struct I need to get them from current actors, and I don’t know how to get “Actor Class” or “Pawn Class”, this is the point of my question.

To get Actor Class of current actor ( Class from GetClass) all you need is Cast to Actor Class.
I’d never seen any explanation of what is Class, but from what it seem to me it’s like a bridge between scene actor and actor class, an instance made from actual actor class, child class.

Here is my Construction Script from item class:

54146-getclass1.jpg

And EventGraph from random spawner class: