and i make a blueprint from this class ( named Module1 ),
now i have a seconde class:
class ADeathZone : public AActor
and i want to use this class in my blueprint Module1 .
i cant see ADeathZone in the component tab. and when i try to make a ADeathZone in c++ in AModule class, UE4 crash .
Wait, you are creating a sub-object as an actor. This wont work, sub-objects must be object (Components in this case) I think. The way you link two actors together is to spawn them and then just use pointers to link them together.
Actors are different from Objects, they need to be spawned in the level. I guess your DeadZone could be just a struct or do you need it to be physically in your level?
If you want to add a component that can be placed in the world try to create an UActorComponent for this instead of an actor.