Section 3.7. rdActor – Spawning

// [rdInst v1.00] Helper Function that Spawns an actor - this can be called from the ConstructionScript (just call rdDestroyAttachedActors() first)
AActor* rdSpawnActor(TSubclassOf<class AActor> actorClass,const FTransform& transform,const FName label=TEXT(""),AActor* parent=nullptr);

// [rdInst v1.10] Helper Function that Spawns an actor, with extra Position information - this can be called from the ConstructionScript (just call rdDestroyAttachedActors() first)
AActor* rdSpawnActorPos(TSubclassOf<class AActor> actorClass,const FTransform& transform,const FrdPositionInfo& pos,const FName label=TEXT(""));

// [rdInst v1.00] Helper Function that adds a Component
UActorComponent* rdAddComponent(TSubclassOf<class UActorComponent> compClass);

// [rdInst v1.00] Helper Function that adds a ChildActorComponent
UChildActorComponent* rdAddChildComponent(UClass* actorClass,const FTransform& transform);

// [rdInst v1.10] Helper Function that adds a ChildActorComponent, with extra Position information
UChildActorComponent* rdAddChildComponentPos(UClass* actorClass,const FTransform& transform,const FrdPositionInfo& pos);

// [rdInst v1.00] Destroys all Actors that have been Spawned with the rdSpawnActor Node
void rdDestroyAttachedActors();

// [rdInst v1.00] Destroys all ChildComponents that have been added with the rdAddChildComponent Node
void rdDestroyAttachedComponents();